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
23 label storage=File1 pool=Default
25 label storage=File1 pool=Default
27 update Volume=TestVolume001 MaxVolBytes=100000000
30 setdebug level=51 Storage=File1
32 llist volume=TestVolume001
33 llist volume=TestVolume002
36 run job=$JobName level=Full Storage=File1
39 llist volume=TestVolume001
40 llist volume=TestVolume002
43 run job=$JobName level=Full Storage=File1
46 llist volume=TestVolume001
47 llist volume=TestVolume002
50 run job=$JobName level=Full Storage=File1
53 llist volume=TestVolume001
54 llist volume=TestVolume002
58 run job=$JobName level=Full Storage=File1
68 llist volume=TestVolume001
69 llist volume=TestVolume002
83 @$out ${cwd}/tmp/jobmedia.out
86 select JobId,MediaId,StartFile,StartBlock,EndFile,EndBlock from JobMedia;
89 @$out ${cwd}/tmp/log2.out
90 restore where=${cwd}/tmp/bacula-restores select storage=File1
95 run job=$JobName level=Full Storage=File1 yes
104 check_for_zombie_jobs storage=File1