3 # Run a simple backup of the Bacula build directory
12 echo " === Starting Backup Bacula Test ==="
13 echo " === Starting Backup Bacula Test ===" >>working/log
16 bin/bacula start 2>&1 >/dev/null
17 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
21 label volume=TestVolume001
29 restore where=${cwd}/tmp/bacula-restores select all done
36 scripts/check_for_zombie_jobs storage=File
37 bin/bacula stop 2>&1 >/dev/null
38 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
40 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
42 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
43 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
46 echo " !!!!! Backup Bacula Test failed!!! !!!!! "
47 echo " !!!!! Backup Bacula Test failed!!! !!!!! " >>test.out
48 if [ $bstat != 0 -o $rstat != 0 ] ; then
49 echo " !!!!! Bad Job termination status !!!!! "
50 echo " !!!!! Bad Job termination status !!!!! " >>test.out
52 echo " !!!!! Restored files differ !!!!! "
53 echo " !!!!! Restored files differ !!!!! " >>test.out
57 echo " ===== Backup Bacula Test OK ===== "
58 echo " ===== Backup Bacula Test OK ===== " >>test.out