Bacula-users

Re: [Bacula-users] bextract -- restore single occurrence of file

2009-10-17 07:38:34
Subject: Re: [Bacula-users] bextract -- restore single occurrence of file
From: cby <christos.yianni AT coasolutions DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 17 Oct 2009 04:34:52 -0700 (PDT)
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/bextract----restore-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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users