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 TestName="two-volume-tape"
14 if test x${AUTOCHANGER} = x/dev/null ; then
15 echo "two-volume-tape test skipped. No autochanger."
20 scripts/copy-2tape-confs
21 scripts/prepare-two-tapes
23 echo "${cwd}/build" >/tmp/file-list
26 echo "s%# Maximum File Size% Maximum File Size%g" >${outf}
27 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
28 sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
30 change_jobname $JobName
33 # Write out bconsole commands
34 cat <<END_OF_DATA >tmp/bconcmds
38 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
39 label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
40 update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default drive=0
42 select * from Storage;
43 select VolumeName,InChanger,StorageId from Media;
45 @#setdebug level=1000 client
49 select * from Storage;
50 select VolumeName,InChanger,StorageId from Media;
57 check_for_zombie_jobs storage=DDS-4
60 mt -f ${TAPE_DRIVE} rewind
61 mtx -f ${AUTOCHANGER} unload
64 cat <<END_OF_DATA >tmp/bconcmds
71 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
80 check_for_zombie_jobs storage=DDS-4