Bacula Cheatsheet
Just a few useful commands. Note that bconsole commands can be scripted by echoing commands through a pipe to bconsole. This is very helpful as you can see.
Check bacula job progress:
root@bcla001:~# echo "status client=dracula-fd" | bconsole | grep -i file Files=31,011 Bytes=507,017,314,659 Bytes/sec=13,158,002 Errors=0 Files Examined=31,011 Processing file: /raidvol/home/bob/o_Data/770/9V904G8FMDW6X4473B3J8Q8H1B.vxml JobId Level Files Bytes Status Finished Name
Check bacula running jobs:
root@bcla001:~# echo "list jobs" | bconsole | grep "|" | JobId | Name | StartTime | Type | Level | JobFiles | JobBytes | JobStatus | | 6 | Test | 2012-09-07 17:58:29 | B | F | 0 | 0 | R |
Check bacula volumes for specific Pool:
root@bcla001:~# echo "list volumes Pool=FullTest" | bconsole | grep "|" | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | | 1 | FullTest0001 | Full | 1 | 1862750776320 | 1863 | 15552000 | 1 | 0 | 0 | Ultrium5-SCSI | 2012-09-08 08:17:19 | | 2 | FullTest0002 | Used | 1 | 112992768000 | 113 | 15552000 | 1 | 0 | 0 | Ultrium5-SCSI | 2012-09-08 11:02:22 |
Flag volume full:
*update volume > Volume Status > Default > VOL034 > Full > Done
A better cheat sheet at this link: http://workaround.org/bacula-cheatsheet