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-changer"
13 JobName=VolDurationChanger
20 scripts/copy-2tape-confs
21 scripts/prepare-two-tapes
23 echo "${cwd}/build" >${cwd}/tmp/file-list
25 change_jobname NightlySave $JobName
28 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
31 @$out ${cwd}/tmp/log1.out
32 setdebug level=100 storage=tape
33 label storage=tape volume=TestVolume001 slot=$SLOT1 pool=Default drive=$DRIVE1
34 label storage=tape volume=TestVolume002 slot=$SLOT2 Pool=Default drive=$DRIVE1
35 update Volume=TestVolume001 VolUse=30
36 update Volume=TestVolume002 VolUse=30
37 run job=$JobName level=Full Storage=tape yes
39 run job=$JobName level=Full Storage=tape yes
46 @$out ${cwd}/tmp/log2.out
47 restore where=${cwd}/tmp/bacula-restores select storage=tape
58 check_for_zombie_jobs storage=tape