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-2t:1d:a-tape"
16 if test x${AUTOCHANGER} = x/dev/null ; then
17 echo "$TestName test skipped. No autochanger."
22 scripts/copy-2tape-confs
23 scripts/prepare-two-tapes
25 echo "${cwd}/build" >${cwd}/tmp/file-list
27 change_jobname NightlySave $JobName
30 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
33 @$out ${cwd}/tmp/log1.out
34 setdebug level=100 storage=DDS-4
35 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
36 label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=0
37 update Volume=TestVolume001 VolUse=30
38 update Volume=TestVolume002 VolUse=30
39 run job=$JobName level=Full Storage=DDS-4 yes
41 run job=$JobName level=Full Storage=DDS-4 yes
48 @$out ${cwd}/tmp/log2.out
49 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
61 check_for_zombie_jobs storage=DDS-4