[Bacula-users] add a copy of a volume to the catalog (with bscan)

2009-05-28 Thread Dmitriy Kudryashov
Cannot understand if bacula's bscan should add to the catalog a copy
of volume that already exists in the catalog.

The thing is I have a pool auto-recycling file-volumes, so the volumes
are just being rotated but kept in the catalog. Once in a month I make
a copy of volumes' files containing the latest full backup and just
write them to DVDs (not using bacula). So later the original volumes
are already pruned, purged and recycled and I'm trying to restore
files from those copies on the DVDs.

The problem is when I do bscan, I get the jobs imported, but not
volumes (volume copies from DVDs).

bscan tells me:

bscan: bscan.c:938 Could not update media record. ERR=sql_update.c:366
Update failed: affected_rows=0 for UPDATE Media SET
VolJobs=1,VolFiles=0,VolBlocks=0,VolBytes=3708617076,VolMounts=0,VolErrors=0,VolWrites=0,MaxVolBytes=0,VolStatus='',Slot=0,InChanger=0,VolReadTime=0,VolWriteTime=0,VolParts=0,LabelType=0,StorageId=0,PoolId=0,VolRetention=0,VolUseDuration=0,MaxVolJobs=0,MaxVolFiles=0,Enabled=0,LocationId=0,ScratchPoolId=0,RecyclePoolId=0,RecycleCount=0
WHERE VolumeName=''

Thanks.

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] add a copy of a volume to the catalog (with bscan)

2009-05-28 Thread Dmitriy Kudryashov
Oh, bacula version 2.4.4 running on FreeBSD 6.4, MySQL database

overmai...@gmail.com:
 Cannot understand if bacula's bscan should add to the catalog a copy
 of volume that already exists in the catalog.

 The thing is I have a pool auto-recycling file-volumes, so the volumes
 are just being rotated but kept in the catalog. Once in a month I make
 a copy of volumes' files containing the latest full backup and just
 write them to DVDs (not using bacula). So later the original volumes
 are already pruned, purged and recycled and I'm trying to restore
 files from those copies on the DVDs.

 The problem is when I do bscan, I get the jobs imported, but not
 volumes (volume copies from DVDs).

 bscan tells me:

 bscan: bscan.c:938 Could not update media record. ERR=sql_update.c:366
 Update failed: affected_rows=0 for UPDATE Media SET
 VolJobs=1,VolFiles=0,VolBlocks=0,VolBytes=3708617076,VolMounts=0,VolErrors=0,VolWrites=0,MaxVolBytes=0,VolStatus='',Slot=0,InChanger=0,VolReadTime=0,VolWriteTime=0,VolParts=0,LabelType=0,StorageId=0,PoolId=0,VolRetention=0,VolUseDuration=0,MaxVolJobs=0,MaxVolFiles=0,Enabled=0,LocationId=0,ScratchPoolId=0,RecyclePoolId=0,RecycleCount=0
 WHERE VolumeName=''

 Thanks.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users