3 # Run a simple backup of the Bacula build directory using the compressed option
4 # then backup a second time and finally restore it
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 two-jobs-test ==="
20 bin/console -c bin/console.conf <<END_OF_DATA
25 run job=CompressedTest
32 touch ${cwd}/build/src/dird/*.c
33 bin/console -c bin/console.conf <<END_OF_DATA
34 run job=CompressedTest
52 diff -ur build /tmp/bacula-restores${cwd}/build
56 echo " ===== two-jobs-test Bacula source failed!!! ===== "
57 echo " ===== two-jobs-test failed!!! ===== " >>test.out
60 echo " ===== two-jobs-test Bacula source OK ===== "
61 echo " ===== two-jobs-test OK ===== " >>test.out
63 rm -rf /tmp/bacula-restores