3 # Run a simple backup of the Bacula build directory
9 bin/bacula stop 2>&1 >/dev/null
10 bin/drop_sqlite_tables
11 bin/make_sqlite_tables
15 echo " === Starting Backup Bacula Test ==="
16 echo " === Starting Backup Bacula Test ===" >>working/log
19 bin/bacula start 2>&1 >/dev/null
20 bin/console -c bin/console.conf <<END_OF_DATA
42 bin/bacula stop 2>&1 >/dev/null
43 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
45 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
47 diff -r build /tmp/bacula-restores${cwd}/build
48 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
51 echo " !!!!! Backup Bacula Test failed!!! !!!!! "
52 echo " !!!!! Backup Bacula Test failed!!! !!!!! " >>test.out
55 echo " ===== Backup Bacula Test OK ===== "
56 echo " ===== Backup Bacula Test OK ===== " >>test.out