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="multi-client-test"
13 scripts/copy-test-confs
14 /bin/cp -f scripts/multi-client-bacula-dir.conf bin/bacula-dir.conf
16 change_jobname NightlySave $JobName
19 cat <<END_OF_DATA >tmp/bconcmds
27 update Volume=TestVolume001 MaxVolBytes=200000000
30 @#setdebug level=51 Storage=File1
32 llist volume=TestVolume001
33 llist volume=TestVolume002
34 run job=${hostname1} level=Full Storage=File1
36 llist volume=TestVolume001
37 llist volume=TestVolume002
38 run job=${hostname2} level=Full Storage=File1
41 llist volume=TestVolume001
42 llist volume=TestVolume002
43 run job=${hostname3} level=Full Storage=File1
45 llist volume=TestVolume001
46 llist volume=TestVolume002
48 run job=$JobName level=Full Storage=File1
54 llist volume=TestVolume001
55 llist volume=TestVolume002
65 restore where=${cwd}/tmp/bacula-restores client=${hostname} select storage=File1
79 check_for_zombie_jobs storage=File1