Bacula-users

Re: [Bacula-users] Recreate boostrap files for jobs from the output of `bls -j`

2017-03-22 06:53:43
Subject: Re: [Bacula-users] Recreate boostrap files for jobs from the output of `bls -j`
From: Konstantin Khomoutov <flatworm AT users.sourceforge DOT net>
To: Konstantin Khomoutov <flatworm AT users.sourceforge DOT net>
Date: Wed, 22 Mar 2017 13:52:50 +0300
On Wed, 22 Mar 2017 12:07:55 +0300
Konstantin Khomoutov <flatworm AT users.sourceforge DOT net> wrote:

[...]
> Due to the uniqueness + tiny size + large quantities property of these
> data, we have decided to keep only the information on the last few
> backup session in the database to keep its size manageable, and resort
> to "painful" restoration of old files -- for which job records are
> expired by the volumes are still there -- using `bextract`.
[...]
> Here, the job starts at 338:1 and ends at 339:10868, how do I write
> out the bootstrap file's data to cover that whole range in it?
> From [1], it appears that I could use
> 
>   VolFile=338-339
> 
> to cover the files but the VolBlock spec appears to pertain to a
> single VolFile.  I thought of using multiple VolFile + VolBlock pairs
> but that would require me to use an open range for the VolBlock of the
> first pair, something like
[...]

Looks like I could combine the output of `bls -j` with the output of
`bls -v` run on the same volume: from the former, I'd get the starting
and ending VolFile-s, and from the latter, I'd get a range of FileIndex
values and/or VolSessionId+VolSessionTime tuple which would cover both
"coarse-grained" tape positioning and "fine-grained" selection of what
to restore.

Still, I'd love to hear opinions on this matter from those well-versed
in how restoration from the tape works.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users