3 # Run four jobs at the same time, with two Volumes.
4 # Set max Vol bytes of first volume
5 # to less than total backup to force Bacula to use the second
8 TestName="four-concurrent-jobs-test"
9 JobName=Four-concurrent-jobs
13 scripts/copy-test-confs
14 echo "${cwd}/build" >${cwd}/tmp/file-list
16 change_jobname NightlySave $JobName
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
22 @$out ${cwd}/tmp/log1.out
27 update Volume=TestVolume001 MaxVolBytes=100000000
30 setdebug level=51 Storage=File1
33 llist volume=TestVolume001
34 llist volume=TestVolume002
37 run job=$JobName level=Full Storage=File1
40 llist volume=TestVolume001
41 llist volume=TestVolume002
44 run job=$JobName level=Full Storage=File1
47 llist volume=TestVolume001
48 llist volume=TestVolume002
51 run job=$JobName level=Full Storage=File1
54 llist volume=TestVolume001
55 llist volume=TestVolume002
59 run job=$JobName level=Full Storage=File1
71 llist volume=TestVolume001
72 llist volume=TestVolume002
87 @$out ${cwd}/tmp/jobmedia.out
90 select JobId,MediaId,StartFile,StartBlock,EndFile,EndBlock from JobMedia;
93 @$out ${cwd}/tmp/log2.out
96 setdebug level=100 Storage=File1
97 restore where=${cwd}/tmp/bacula-restores select storage=File1
103 run job=$JobName level=Full Storage=File1 yes
111 check_for_zombie_jobs storage=File1