Re: [Bacula-users] bextract -- restore single occurrence of file
> On Sat, 17 Oct 2009 04:34:52 -0700 (PDT), cby said: > > Jesper > > > Jesper Krogh wrote: > > > >> I fired up bextract (standard bacula restore is not appropriate in this > >> case) which restored the first occurrence of the file as expected. > >> However, > >> instead of halting after restoring the file, bextract continued to the > >> end > >> of the tape and found a second occurrence with the same filename which it > >> duly restored replacing the originally restored file. > > > > I suggest you open a bug-report/feature request on this.. this seems > > like a really nasty situation to get into if stuff really "burns". > > > > Jesper > > > > > > > Interestingly, I tried Martin's suggestion of using a bootstrap file. I > defined two parameters: Volume name = volname and Count = 1. My > understanding was that once the number of restored files hit the Count value > bextract would stop. This wasn't the case. That may be a bug. > I also used an include-list file > when running bextract so there may be a clash when using -b and -i > command-line options. I wasn't able to provide all the parameters to use > just a bootstrap file. I think you can get the job-related parameters by running bls. __Martin -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bextract -- restore single occurrence of file
Jesper Jesper Krogh wrote: > >> I fired up bextract (standard bacula restore is not appropriate in this >> case) which restored the first occurrence of the file as expected. >> However, >> instead of halting after restoring the file, bextract continued to the >> end >> of the tape and found a second occurrence with the same filename which it >> duly restored replacing the originally restored file. > > I suggest you open a bug-report/feature request on this.. this seems > like a really nasty situation to get into if stuff really "burns". > > Jesper > > Interestingly, I tried Martin's suggestion of using a bootstrap file. I defined two parameters: Volume name = volname and Count = 1. My understanding was that once the number of restored files hit the Count value bextract would stop. This wasn't the case. I also used an include-list file when running bextract so there may be a clash when using -b and -i command-line options. I wasn't able to provide all the parameters to use just a bootstrap file. Details are: bextract -b bootstrap-file -i include-list -V TAPE_04 /dev/nst0 /mnt/restores include-list file contents: /Backups/VM09_Full_backup.vbk bootstrap-file file contents: Volume = TAPE_04 Count = 1 In the end I used the interrupt approach -- once the first file was restored I interrupted the bextract process before it got to the second occurrence of the file. Ironically this is the only tape in the entire monthly backup set that includes the same file twice! cby -- View this message in context: http://www.nabble.com/bextractrestore-single-occurrence-of-file-tp25905115p25937562.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bextract -- restore single occurrence of file
> I fired up bextract (standard bacula restore is not appropriate in this > case) which restored the first occurrence of the file as expected. However, > instead of halting after restoring the file, bextract continued to the end > of the tape and found a second occurrence with the same filename which it > duly restored replacing the originally restored file. I suggest you open a bug-report/feature request on this.. this seems like a really nasty situation to get into if stuff really "burns". Jesper -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bextract -- restore single occurrence of file
Martin Thanks for the pointer. Looks like it's the way to go. cby Martin Simmons wrote: > >> On Thu, 15 Oct 2009 02:40:33 -0700 (PDT), cby said: >> >> Running bacula on Centos 5.2 I have a tape volume which has more than one >> occurrence of the same filename as a result of appending to tape. I >> needed >> to restore the first file. >> >> I fired up bextract (standard bacula restore is not appropriate in this >> case) which restored the first occurrence of the file as expected. >> However, >> instead of halting after restoring the file, bextract continued to the >> end >> of the tape and found a second occurrence with the same filename which it >> duly restored replacing the originally restored file. >> >> Bearing in mind that the file is over 300GB (Veeam backup) I want to >> avoid a >> repeat of this exercise without being able to halt bextract after the >> initial file restore. I have looked through the bacula documentation and >> usual places but there does not appear to be an obvious way to instruct >> bextract to restore the first occurrence of a file. >> >> Fortunately the two files were written some distance apart on the tape so >> I >> can kill the bextract process once the first file has been restored. Not >> exactly elegant but it should work. >> >> I'd be grateful for any suggestions in how bextract itself can achieve >> this >> without recourse to my sledgehammer approach! > > It can be done by creating a bootstrap file: > > http://www.bacula.org/en/rel-manual/Volume_Utility_Tools.html#SECTION003962000 > http://www.bacula.org/en/rel-manual/Bootstrap_File.html#BootstrapChapter > > __Martin > > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://www.nabble.com/bextractrestore-single-occurrence-of-file-tp25905115p25906541.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bextract -- restore single occurrence of file
> On Thu, 15 Oct 2009 02:40:33 -0700 (PDT), cby said: > > Running bacula on Centos 5.2 I have a tape volume which has more than one > occurrence of the same filename as a result of appending to tape. I needed > to restore the first file. > > I fired up bextract (standard bacula restore is not appropriate in this > case) which restored the first occurrence of the file as expected. However, > instead of halting after restoring the file, bextract continued to the end > of the tape and found a second occurrence with the same filename which it > duly restored replacing the originally restored file. > > Bearing in mind that the file is over 300GB (Veeam backup) I want to avoid a > repeat of this exercise without being able to halt bextract after the > initial file restore. I have looked through the bacula documentation and > usual places but there does not appear to be an obvious way to instruct > bextract to restore the first occurrence of a file. > > Fortunately the two files were written some distance apart on the tape so I > can kill the bextract process once the first file has been restored. Not > exactly elegant but it should work. > > I'd be grateful for any suggestions in how bextract itself can achieve this > without recourse to my sledgehammer approach! It can be done by creating a bootstrap file: http://www.bacula.org/en/rel-manual/Volume_Utility_Tools.html#SECTION003962000 http://www.bacula.org/en/rel-manual/Bootstrap_File.html#BootstrapChapter __Martin -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] bextract -- restore single occurrence of file
Hi Running bacula on Centos 5.2 I have a tape volume which has more than one occurrence of the same filename as a result of appending to tape. I needed to restore the first file. I fired up bextract (standard bacula restore is not appropriate in this case) which restored the first occurrence of the file as expected. However, instead of halting after restoring the file, bextract continued to the end of the tape and found a second occurrence with the same filename which it duly restored replacing the originally restored file. Bearing in mind that the file is over 300GB (Veeam backup) I want to avoid a repeat of this exercise without being able to halt bextract after the initial file restore. I have looked through the bacula documentation and usual places but there does not appear to be an obvious way to instruct bextract to restore the first occurrence of a file. Fortunately the two files were written some distance apart on the tape so I can kill the bextract process once the first file has been restored. Not exactly elegant but it should work. I'd be grateful for any suggestions in how bextract itself can achieve this without recourse to my sledgehammer approach! Thanks. -- View this message in context: http://www.nabble.com/bextractrestore-single-occurrence-of-file-tp25905115p25905115.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users