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 ==="
14 echo " === Starting verify Volume Test ===" >>working/log
17 bin/bacula start 2>&1 >/dev/null
18 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
22 label storage=File volume=TestVolume001
23 run job=NightlySave yes
27 @# now do a verify volume
29 @output ${cwd}/tmp/original
38 scripts/check_for_zombie_jobs storage=File
39 bin/bacula stop 2>&1 >/dev/null
40 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
42 grep "^Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
43 if [ $? != 0 -o $bstat != 0 ] ; then
46 echo " !!!!! Verify Volume failed!!! !!!!! "
47 echo " !!!!! Verify Volume failed!!! !!!!! " >>test.out
48 if [ $bstat != 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 " ===== Verify Volume Test OK ===== "
58 echo " ===== Verify Volume Test OK ===== " >>test.out