3 # Run a simple backup of the Bacula build directory but
4 # split the archive into two volumes
7 scripts/copy-test-confs
8 rm -rf tmp/TestVolume001 tmp/TestVolume002 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-vol-test ==="
20 bin/console -c bin/console.conf <<END_OF_DATA
27 update Volume=TestVolume001
32 run job=NightlySave storage=File1
39 restore where=${cwd}/tmp/bacula-restores
48 diff -ur build tmp/bacula-restores${cwd}/build
52 echo " ===== two-vol-test Bacula source failed!!! ===== "
53 echo " ===== two-vol-test failed!!! ===== " >>test.out
56 echo " ===== two-vol-test Bacula source OK ===== "
57 echo " ===== two-vol-test OK ===== " >>test.out
58 rm -rf tmp/bacula-restores tmp/TestVolume001 tmp/TestVolume002