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"
12 if test x${AUTOCHANGER} = x/dev/null ; then
13 echo "${TestName} test skipped. No autochanger."
18 scripts/copy-2tape-confs
19 scripts/prepare-two-tapes
21 echo "${cwd}/build" >${cwd}/tmp/file-list
24 echo "s%# Maximum File Size% Maximum File Size%g" >${outf}
25 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
26 sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
28 change_jobname $JobName
31 # Write out bconsole commands
32 cat <<END_OF_DATA >tmp/bconcmds
36 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
37 label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
38 update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default drive=0
40 select * from Storage;
41 select VolumeName,InChanger,Slot,StorageId from Media;
43 @#setdebug level=1000 client
44 @#setdebug level=250 storage=DDS-4
48 select * from Storage;
49 select VolumeName,InChanger,Slot,StorageId from Media;
56 check_for_zombie_jobs storage=DDS-4
59 mt -f ${TAPE_DRIVE} rewind
60 mtx -f ${AUTOCHANGER} unload
63 cat <<END_OF_DATA >tmp/bconcmds
70 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
79 check_for_zombie_jobs storage=DDS-4