> > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:bacula-users- > > > > Hello, > > > > I want to restore some files from tape, but because my job was purged > from > > catalog I need to bscan it... > > I use the command: ./bscan.mysql -m -s -P .... -c > > /etc/bacula/bacula-sd.conf -v -V POOL /dev/st0 > > it runs but from time to time I get some errors like this below: > > 23-May 14:54 bscan: Got EOF at file 43 on device /dev/st0, Volume > "POOL" > > bscan: bscan.c:907 Fileset "POOL" already exists. > > bscan: bscan.c:1022 Could not update JobId=1540 record. > > ERR=sql_update.c:166 > > Update problem: affected_rows=0 > > > > bscan: bscan.c:1121 Created JobMedia record JobId 1540, MediaId 14 > > 23-May 14:55 bscan: Got EOF at file 44 on device /dev/st0, Volume > "POOL" > > bscan: bscan.c:472 SOS_LABEL: Found Job record for JobId: 0 > > 23-May 14:56 bscan: Got EOF at file 45 on device /dev/st0, Volume > "POOL" > > 23-May 14:58 bscan: Got EOF at file 46 on device /dev/st0, Volume > "POOL" > > > > > > can anybody tell me why... > > This is by no means an ultimate solution since I'm sure you want to > update your catalog... however... > > Perhaps you can run bscan without updating the media info in the > database (-m option) and/or synchronizing or storing in the database (-s > option). At least this way you may be able to restore the files if the > problem lies within updating the database. > > Good luck, > > Jon > > Hello, > thanks for Your reply, but it didn't work. > I tried without -m, without -s and I even purge jobs from that volume and > tried once more. > Problem is still the same: > bscan: bscan.c:845 Could not update media record. ERR=sql_update.c:327 > Update problem: affected_rows=0 > > bscan: bscan.c:600 End of all Volumes. VolFiles=59 VolBlocks=0 > VolBytes=14,170,852,177 > Records added or updated in the catalog: > 0 Media > 0 Pool > 1 Job > 96915 File > > and then in the restore I don't see that files I would like to restore... > > Any new suggestions?
Try using bextract to restore the entire volume or particular files in the volume. You can use a procedure like this: 1) Shut down bacula and rewind your tape. 2) Run btape and execute the command 'readlabel' to identify the name of the volume, just in case you are mistaken about the volumen name. 3) Run bextract in one of the following ways: To restore the entire volume: bextract -V <volume-name> /dev/tape-device /path/for/restore/ To restore a file or particulare files: bextract -i include-list -V volume-name /dev/nst0 /path/to/restore/ Include-list is a list of the files you want to restore. Hope that helps! Jon ------------------------------------------------------- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_idt02&alloc_id135&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users