3 # Run a simple backup of the Bacula build directory
4 # to two tapes where the maximum tape file size is set to 1M
5 # Note, this test simulates the tape filling and writing to
8 # Note we use the viritual disk autochanger
10 TestName="two-volume-test"
17 scripts/copy-2disk-confs
18 scripts/prepare-two-disks
20 echo "${cwd}/build" >/tmp/file-list
23 echo "s%# Maximum File Size% Maximum File Size%g" >${outf}
24 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
25 sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
27 change_jobname NightlySave $JobName
30 # Write out bconsole commands
31 cat <<END_OF_DATA >tmp/bconcmds
35 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
36 label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
37 update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default drive=0
39 select * from Storage;
40 select VolumeName,InChanger,StorageId from Media;
42 @#setdebug level=1000 client
45 update slots scan storage=DDS-4
47 select * from Storage;
48 select VolumeName,InChanger,StorageId from Media;
55 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
64 check_for_zombie_jobs storage=DDS-4