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
25 label storage=File volume=TestVolume001
26 run job=NightlySave yes
30 @# now do a verify volume
32 @output ${cwd}/tmp/original
41 bin/bacula stop 2>&1 >/dev/null
42 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
44 grep "^Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
45 if [ $? != 0 -o $bstat != 0 ] ; then
48 echo " !!!!! Verify Volume failed!!! !!!!! "
49 echo " !!!!! Verify Volume failed!!! !!!!! " >>test.out
52 echo " ===== Verify Volume Test OK ===== "
53 echo " ===== Verify Volume Test OK ===== " >>test.out