bacula

Bacula: prune all volumes from all pools

http://old.nabble.com/prune-from-a-script-td16259610.html

#!/bin/sh
 
volumes=`mysql -ubacula -B -e'select VolumeName from Media order by VolumeName;' bacula | tail -n+2`
 
for vol in `echo $volumes`
do
   echo "prune volume=${vol} yes" | bconsole
done 

upgrade bacula to 5.0.x


As always, both the Director and Storage daemon must be upgraded at
the same time, and on any given machine, you must run only one version
of Bacula. This means that on the Director and Storage daemon machines,
you *must* upgrade your File daemon as well.

Older 3.0.x and possibly 2.4.x File Daemons are compatible with the 5.0.0
Director and Storage daemons. There should be no need to upgrade older File
Daemons immediately. However, we recommend that you do so as soon
as is reasonable for your situation.

convert a 2.4.x (version 10) catalog to 3.0.0 (version 11)

restore bacula catalog from volumes

ls -1 /var/backups/bacula/Vol* | perl -ne 'print "Volume=$_"' > bscan.bsr
 
bscan -s -m -b bscan.bsr -u user -P password -S /var/backups/bacula

-b bootstrap      specify a bootstrap file
-m                update media info in database
-s                synchronize or store in database
-S                show scan progress periodically

Bacula including other configuration files

If you wish to break your configuration file into smaller pieces, you can do so by including other files using the syntax @filename where filename is the full path and filename of another file. The @filename specification can be given anywhere a primitive token would appear.