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 `date +%R:%S` ==="
14 echo " === Starting four-concurrent-jobs-tape `date +%R:%S` ===" >>working/log
17 bin/bacula start 2>&1 >/dev/null
18 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
22 label storage=DDS-4 volume=TestVolume001 slot=0
23 run job=NightlySave level=Full Storage=DDS-4 yes
24 run job=NightlySave level=Full Storage=DDS-4 yes
25 run job=NightlySave level=Full Storage=DDS-4 yes
26 run job=NightlySave level=Full Storage=DDS-4 yes
37 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
47 scripts/check_for_zombie_jobs storage=DDS-4
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 2>&1 >/dev/null
54 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
57 echo " !!!!! four-concurrent-jobs-tape Bacula source failed!!! !!!!! "
58 echo " !!!!! four-concurrent-jobs-tape failed!!! !!!!! " >>test.out
62 echo " ===== four-concurrent-jobs-tape Bacula source OK ===== "
63 echo " ===== four-concurrent-jobs-tape OK ===== " >>test.out