3 # Run a simple backup of the Bacula build directory but
4 # split the archive into two volumes
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 two-vol-test ==="
17 echo " === Starting two-vol-test ===" >working/log
20 bin/bacula start 2>&1 >/dev/null
21 bin/console -c bin/console.conf <<END_OF_DATA
28 update Volume=TestVolume001
32 run job=NightlySave storage=File1
40 restore where=${cwd}/tmp/bacula-restores
48 bin/bacula stop 2>&1 >/dev/null
49 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
51 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
53 diff -r build tmp/bacula-restores${cwd}/build
54 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
57 echo " ===== two-vol-test Bacula source failed!!! ===== "
58 echo " ===== two-vol-test failed!!! ===== " >>test.out
61 echo " ===== two-vol-test Bacula source OK ===== "
62 echo " ===== two-vol-test OK ===== " >>test.out