3 # Run a job with a limited tape size so that the tape fills up.
4 # Then manually unload the tape and load a new one, label
7 TestName="two-vol-manual-tape"
8 JobName=twovolmanualtape
15 scripts/copy-tape-confs
16 echo "${cwd}/build" >${cwd}/tmp/file-list
17 MTX=$AUTOCHANGER_SCRIPT
19 # Sleep longer if real tape
20 if [ x${USE_VTAPE} = xyes ] ; then
30 init_slot $TAPE_DRIVE $SLOT1
31 init_slot $TAPE_DRIVE $SLOT2
35 init_drive ${TAPE_DRIVE}
37 change_jobname $JobName
41 cat <<END_OF_DATA >tmp/bconcmds
45 label storage=DDS-4 volume=TestVolume002 slot=0 pool=Default drive=0
54 init_drive ${TAPE_DRIVE}
56 # label first volume, and run first half of job
57 cat <<END_OF_DATA >tmp/bconcmds
59 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default drive=0
60 update Volume=TestVolume001 MaxVolBytes=500000 pool=Default drive=0
62 setdebug level=150 storage=DDS-4
64 @# This sleep must be long enough for the first tape to fill (4MB)
65 @# otherwise the following mtx-changer commands will fail
79 cat <<END_OF_DATA >tmp/bconcmds
82 @# backup should continue
87 @#restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
96 # run second half of backup + restore
101 check_for_zombie_jobs storage=DDS-4