3 # Run two jobs at the same time
6 bin/bacula stop 2>&1 >/dev/null
9 scripts/copy-tape-confs
11 echo "${cwd}/build" >/tmp/file-list
15 echo " === Starting four-concurrent-jobs-tape ==="
16 echo " === Starting four-concurrent-jobs-tape ===" >>working/log
19 #bin/bacula start 2>&1 >/dev/null
21 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
25 label storage=DDS-4 volume=TestVolume001 slot=0
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
29 run job=NightlySave level=Full Storage=DDS-4 yes
40 restore where=${cwd}/tmp/bacula-restores select all
47 bin/bacula stop 2>&1 >/dev/null
48 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
50 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
52 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
53 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
56 echo " !!!!! four-concurrent-jobs-tape Bacula source failed!!! !!!!! "
57 echo " !!!!! four-concurrent-jobs-tape failed!!! !!!!! " >>test.out
61 echo " ===== four-concurrent-jobs-tape Bacula source OK ===== "
62 echo " ===== four-concurrent-jobs-tape OK ===== " >>test.out