Skip to main content

Bextract

Bextract

1. Get list of volumes from TechDB

To get an idea of what files you'll need, you need to examine the TechDB Backups tab. For each backup, a line will be printed which starts "Volume name(s):" - this should be in the following format:

srv-7813711322-3889
srv-7813711322-3882
srv-7813711322-3875
srv-7813711322-3868
srv-7813711322-3861
srv-7813711322-3854
srv-7813711322-3847
srv-7813711322-3891

2. Create bootstrap file

This is a text file containing a list of volumes for Bacula to read from, in the correct order, it's format should be as follows (oldes to newest):

Volume=srv-78_137_113_22-3847
Volume=srv-78_137_113_22-3854
Volume=srv-78_137_113_22-3861
Volume=srv-78_137_113_22-3868
Volume=srv-78_137_113_22-3875
Volume=srv-78_137_113_22-3882
Volume=srv-78_137_113_22-3889
Volume=srv-78_137_113_22-3891

3. Create includes file


The next thing to create is a file which describes which files you want to extract from the backups, this is just another text file, containing the paths to the files you want to restore, separated by linebreaks, e.g:

/var/qmail/mailnames/commercialfuelsolutions.co.uk/katie/Maildir/.Document.Credit account/cur/

Not needed if you need to restore everything.

4. Create the output directory (on backup server)

5. Running the command

The first of these commands will just **list** the files in the backup volumes you specified, the second will **extract** the files into the folder you gave. Only files that match the includes.txt file will be extracted.

If you are running this command on a PyBaculav2 server you will need to replace the storage prefix with device instead

List the files in the backup volumes:

pybaculav2:

 bls -b bootstrap.bsr -i includes.txt -pv device-78_137_113_22
 
 OR

 bextract -b bootstrap.bsr -i includes.txt -pv storage-78_137_113_22 /home/restore_INC688986