3 # Run a simple backup of the Bacula build directory but
4 # create two volumes and set a short Volume duration on
5 # the first so that it will be used, recycled. Then
6 # Bug #1032 indicates it will get a changer error when
7 # loading the second volume. However, we cannot reproduce
10 # This test uses an autochanger
12 TestName="vol-duration-2t1da-tape"
16 skip_if_no_autochanger
19 scripts/copy-2tape-confs
20 scripts/prepare-two-tapes
22 echo "${cwd}/build" >${cwd}/tmp/file-list
24 change_jobname NightlySave $JobName
27 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
30 @$out ${cwd}/tmp/log1.out
31 @#setdebug level=100 storage=DDS-4
32 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
33 label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=0
34 update Volume=TestVolume001 VolUse=30
35 update Volume=TestVolume002 VolUse=30
36 run job=$JobName level=Full Storage=DDS-4 yes
38 run job=$JobName level=Full Storage=DDS-4 yes
45 @$out ${cwd}/tmp/log2.out
46 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
58 check_for_zombie_jobs storage=DDS-4