3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run four jobs at the same time, with two Volumes.
9 # Set max Vol bytes of first volume
10 # to less than total backup to force Bacula to use the second
13 TestName="multi-client-test"
18 scripts/copy-test-confs
19 /bin/cp -f scripts/multi-client-bacula-dir.conf bin/bacula-dir.conf
21 change_jobname NightlySave $JobName
24 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
27 @$out ${cwd}/tmp/log1.out
28 @# Make sure we can contact all clients
29 @#setdebug level=100 dir
30 status client=${HOST}-fd
31 status client=${hostname1}-fd
32 status client=${hostname2}-fd
33 status client=${hostname3}-fd
39 update Volume=TestVolume001 MaxVolBytes=900000000
41 @#llist volume=TestVolume001
42 @#llist volume=TestVolume002
43 run job=${hostname1} level=Full Storage=File1 yes
44 run job=${hostname2} level=Full Storage=File1 yes
45 @# run job=${hostname3} level=Full Storage=File1 yes
47 run job=$JobName level=Full Storage=File1 yes
59 @$out ${cwd}/tmp/log2.out
60 restore where=${cwd}/tmp/bacula-restores client=${hostname}-fd select storage=File1
76 #if test "$debug" -eq 1 ; then
77 # diff -r ${hostname_files} ${cwd}/tmp/bacula-restores/${hostname_files}
79 # diff -r ${hostname_files} ${cwd}/tmp/bacula-restores/${hostname_files} 2>&1 >/dev/null