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
10 bin/bacula stop 2>&1 >/dev/null
12 ./drop_bacula_tables >/dev/null 2>&1
13 ./make_bacula_tables >/dev/null 2>&1
14 ./grant_bacula_privileges 2>&1 >/dev/null
19 echo " === Starting verify Volume Test ==="
20 echo " === Starting verify Volume Test ===" >>working/log
23 bin/bacula start 2>&1 >/dev/null
24 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
28 label storage=File volume=TestVolume001
29 run job=NightlySave yes
33 @# now do a verify volume
35 @output ${cwd}/tmp/original
44 bin/bacula stop 2>&1 >/dev/null
45 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
47 grep "^Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
48 if [ $? != 0 -o $bstat != 0 ] ; then
51 echo " !!!!! Verify Volume failed!!! !!!!! "
52 echo " !!!!! Verify Volume failed!!! !!!!! " >>test.out
55 echo " ===== Verify Volume Test OK ===== "
56 echo " ===== Verify Volume Test OK ===== " >>test.out