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
11 bin/drop_sqlite_tables
12 bin/make_sqlite_tables
16 echo " === Starting verify Volume Test ==="
17 echo " === Starting verify Volume Test ===" >>working/log
20 bin/bacula start 2>&1 >/dev/null
21 bin/console -c bin/console.conf <<END_OF_DATA
32 @# now do a verify volume
34 @output ${cwd}/tmp/original
43 bin/bacula stop 2>&1 >/dev/null
44 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
46 grep "^Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
47 if [ $? != 0 -o $bstat != 0 ] ; then
50 echo " !!!!! Verify Volume failed!!! !!!!! "
51 echo " !!!!! Verify Volume failed!!! !!!!! " >>test.out
54 echo " ===== Verify Volume Test OK ===== "
55 echo " ===== Verify Volume Test OK ===== " >>test.out