Bacula-users

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

2009-10-15 07:01:39
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: Thu, 15 Oct 2009 03:57:52 -0700 (PDT)
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#SECTION003962000000000000000
> 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 AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/bextract----restore-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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users