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 >${cwd}/tmp/bconcmds
22 @$out ${cwd}/tmp/log1.out
23 @# Make sure we can contact all clients
24 @#setdebug level=100 dir
25 status client=${HOST}-fd
26 status client=${hostname1}-fd
27 status client=${hostname2}-fd
28 status client=${hostname3}-fd
34 update Volume=TestVolume001 MaxVolBytes=900000000
36 @#llist volume=TestVolume001
37 @#llist volume=TestVolume002
38 run job=${hostname1} level=Full Storage=File1 yes
39 run job=${hostname2} level=Full Storage=File1 yes
40 @# run job=${hostname3} level=Full Storage=File1 yes
42 run job=$JobName level=Full Storage=File1 yes
54 @$out ${cwd}/tmp/log2.out
55 restore where=${cwd}/tmp/bacula-restores client=${hostname}-fd select storage=File1
71 #if test "$debug" -eq 1 ; then
72 # diff -r ${hostname_files} ${cwd}/tmp/bacula-restores/${hostname_files}
74 # diff -r ${hostname_files} ${cwd}/tmp/bacula-restores/${hostname_files} 2>&1 >/dev/null