3 # Run a simple backup of the Bacula build directory using the Sparse option
7 scripts/copy-test-confs
8 rm -rf /tmp/TestVolume001 /tmp/bacula-restores
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-test ==="
20 bin/console -c bin/console.conf <<END_OF_DATA
43 diff -ur build /tmp/bacula-restores${cwd}/build
47 echo " ===== sparse-test Bacula source failed!!! ===== "
48 echo " ===== sparse-test failed!!! ===== " >>test.out
51 echo " ===== sparse-test Bacula source OK ===== "
52 echo " ===== sparse-test OK ===== " >>test.out
54 rm -rf /tmp/bacula-restores