3 # Run two jobs at the same time
6 bin/bacula stop 2>&1 >/dev/null
8 ./drop_bacula_tables >/dev/null 2>&1
9 ./make_bacula_tables >/dev/null 2>&1
10 ./grant_bacula_privileges 2>&1 >/dev/null
12 scripts/copy-tape-confs
14 echo "${cwd}/build" >/tmp/file-list
18 echo " === Starting four-concurrent-jobs-tape ==="
19 echo " === Starting four-concurrent-jobs-tape ===" >>working/log
22 #bin/bacula start 2>&1 >/dev/null
24 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
28 label storage=DDS-4 volume=TestVolume001 slot=0
29 run job=NightlySave level=Full Storage=DDS-4 yes
30 run job=NightlySave level=Full Storage=DDS-4 yes
31 run job=NightlySave level=Full Storage=DDS-4 yes
32 run job=NightlySave level=Full Storage=DDS-4 yes
43 restore where=${cwd}/tmp/bacula-restores select all
50 bin/bacula stop 2>&1 >/dev/null
51 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
53 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
55 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
56 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
59 echo " !!!!! four-concurrent-jobs-tape Bacula source failed!!! !!!!! "
60 echo " !!!!! four-concurrent-jobs-tape failed!!! !!!!! " >>test.out
64 echo " ===== four-concurrent-jobs-tape Bacula source OK ===== "
65 echo " ===== four-concurrent-jobs-tape OK ===== " >>test.out