3 # Run a simple backup of the Bacula build directory
4 # then verify the catalog.
7 scripts/copy-test-confs
9 echo "${cwd}/build" >/tmp/file-list
13 echo " === Starting verify Volume Test at `date +%R:%S` ==="
14 echo " === Starting verify Volume Test at `date +%R:%S` ===" >>working/log
17 bin/bacula start 2>&1 >/dev/null
18 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
22 setdebug level=1 storage=File sd
23 label storage=File volume=TestVolume001
24 run job=NightlySave yes
28 @# now do a verify volume
30 @output ${cwd}/tmp/original
39 scripts/check_for_zombie_jobs storage=File
40 bin/bacula stop 2>&1 >/dev/null
41 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
43 grep "^ Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
44 if [ $? != 0 -o $bstat != 0 ] ; then
47 echo " !!!!! Verify Volume failed!!! !!!!! "
48 echo " !!!!! Verify Volume failed!!! !!!!! " >>test.out
49 if [ $bstat != 0 ] ; then
50 echo " !!!!! Bad Job termination status !!!!! "
51 echo " !!!!! Bad Job termination status !!!!! " >>test.out
53 echo " !!!!! Restored files differ !!!!! "
54 echo " !!!!! Restored files differ !!!!! " >>test.out
58 echo " ===== Verify Volume Test OK ===== "
59 echo " ===== Verify Volume Test OK ===== " >>test.out