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"
16 scripts/copy-2disk-confs
17 scripts/prepare-two-disks
19 echo "${cwd}/build" >${cwd}/tmp/file-list
22 echo "s%# Maximum File Size% Maximum File Size%g" >${outf}
23 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
24 sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
26 change_jobname NightlySave $JobName
29 # Write out bconsole commands
30 cat <<END_OF_DATA >tmp/bconcmds
34 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
35 label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
36 update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default drive=0
38 select * from Storage;
39 select VolumeName,InChanger,StorageId from Media;
41 @#setdebug level=1000 client
44 update slots scan storage=DDS-4
46 select * from Storage;
47 select VolumeName,InChanger,StorageId from Media;
54 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
63 check_for_zombie_jobs storage=DDS-4