3 # Run a simple backup of the Bacula build directory using the Sparse option
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 sparse-compressed-test ==="
17 echo " === Starting sparse-compressed-test ===" >>working/log
20 bin/bacula start 2>&1 >/dev/null
21 bin/console -c bin/console.conf <<END_OF_DATA
27 run job=SparseCompressedTest
44 bin/bacula stop 2>&1 >/dev/null
45 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
47 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
49 diff -r build /tmp/bacula-restores${cwd}/build
50 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
53 echo " !!!!! sparse-compressed-test Bacula source failed!!! !!!!! "
54 echo " !!!!! sparse-compressed-test failed!!! !!!!! " >>test.out
57 echo " ===== sparse-compressed-test Bacula source OK ===== "
58 echo " ===== sparse-compressed-test OK ===== " >>test.out