3 # Run two jobs at the same time
6 scripts/copy-tape-confs
9 echo "${cwd}/build" >/tmp/file-list
13 echo " === Starting four-concurrent-jobs-tape at `date +%R:%S` ==="
14 echo " === Starting four-concurrent-jobs-tape at `date +%R:%S` ===" >>working/log
17 bin/bacula start 2>&1 >/dev/null
19 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
20 #bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
24 label storage=DDS-4 volume=TestVolume001 slot=0
25 run job=NightlySave level=Full Storage=DDS-4 yes
26 run job=NightlySave level=Full Storage=DDS-4 yes
27 run job=NightlySave level=Full Storage=DDS-4 yes
28 run job=NightlySave level=Full Storage=DDS-4 yes
39 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
49 scripts/check_for_zombie_jobs storage=DDS-4
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