useful bacula commands
find out what was in a backup run
- get the job-id from the bacula mail
- run the following on bacula database (currently postgresql-manda-01.debian.org)
select path,name from filename inner join file on filename.filenameid=file.filenameid inner join path on path.pathid=file.pathid where file.jobid=$JOBID;
reschedule a backup run
- check the debian-admin-bacula archive on master for failed runs
- if the issue is intermittent or fixed, log in to dinis
- run bconsole
- type "run", and pick the host
- if necessary adjust "level", then start the backup
do a mass reschedule on what is needed
(cd /etc/bacula/conf.d && for i in *; do h="${i%%.conf}"; /usr/lib/nagios/plugins/dsa-check-bacula -w 17h $h > /dev/null|| echo "run $h yes"; done) |tee incruns
Restoring specific files
- Login to the bacula director
dinis.debian.org
- run
sudo bconsole
- Use the
restore
command - Choose "find the job ids of the most recent backup for a client" (9)
- Choose the server
- Choose "enter a list of directories to restore for found job ids" (11)
- Login to the server
- Look at the files in
/var/tmp/bacula-restores/
- Clean up the files in
/var/tmp/bacula-restores/