3 # Run a simple backup of the Bacula build directory using the compressed option
7 scripts/copy-test-confs
9 echo "${cwd}/build" >/tmp/file-list
13 echo " === Starting compressed-test at `date +%R:%S` ==="
14 echo " === Starting compressed-test at `date +%R:%S` ===" >>working/log
17 bin/bacula start 2>&1 >/dev/null
19 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
25 label storage=File volume=TestVolume001
26 run job=CompressedTest storage=File yes
33 restore where=${cwd}/tmp/bacula-restores select storage=File
43 scripts/check_for_zombie_jobs storage=File
44 bin/bacula stop 2>&1 >/dev/null
45 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
47 grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
49 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
50 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
53 echo " !!!!! compressed-test Bacula source failed!!! !!!!! "
54 echo " !!!!! compressed-test failed!!! !!!!! " >>test.out
55 if [ $bstat != 0 -o $rstat != 0 ] ; then
56 echo " !!!!! Bad Job termination status !!!!! "
57 echo " !!!!! Bad Job termination status !!!!! " >>test.out
59 echo " !!!!! Restored files differ !!!!! "
60 echo " !!!!! Restored files differ !!!!! " >>test.out
64 echo " ===== compressed-test Bacula source OK ===== "
65 echo " ===== compressed-test OK ===== " >>test.out