3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # This should expose bug #7154
8 # This script uses the virtual disk autochanger and two drives
10 TestName="virtualfull-bug-7154"
15 scripts/copy-2disk-tape-confs
18 echo "${cwd}/build" >${cwd}/tmp/file-list
19 change_jobname NightlySave $JobName
22 # Turn on automatic label
23 $bperl -e 'add_attribute("$conf/bacula-dir.conf", "LabelFormat", "vol", "Pool")'
24 $bperl -e 'add_attribute("$conf/bacula-sd.conf", "LabelMedia", "yes", "Device")'
27 # Enable nextpool for virtualfull and accurate fag
28 $bperl -e 'add_attribute("$conf/bacula-dir.conf", "Accurate", "yes", "Job")'
29 $bperl -e 'add_attribute("$conf/bacula-dir.conf", "BackupsToKeep", "5", "Job")'
30 $bperl -e 'add_attribute("$conf/bacula-dir.conf", "DeleteConsolidatedJobs", "yes", "Job")'
31 $bperl -e 'add_attribute("$conf/bacula-dir.conf", "Storage", "tape", "Pool")'
32 $bperl -e 'add_attribute("$conf/bacula-dir.conf", "NextPool", "Default", "Pool", "Default")'
34 # Write out bconsole commands
35 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
38 @$out ${cwd}/tmp/log1.out
39 @#setdebug level=100 client=$CLIENT
40 run job=$JobName level=Full Pool=Default yes
42 @exec "touch $cwd/build/po/fr.po"
43 run job=$JobName level=Incremental Pool=Default yes
45 @exec "touch $cwd/build/po/fr.po"
46 run job=$JobName level=Incremental Pool=Default yes
48 @exec "touch $cwd/build/po/fr.po"
49 run job=$JobName level=Incremental Pool=Default yes
51 @exec "touch $cwd/build/po/fr.po"
52 run job=$JobName level=Incremental Pool=Default yes
54 @exec "touch $cwd/build/po/fr.po"
55 run job=$JobName level=Incremental Pool=Default yes
57 @exec "touch $cwd/build/po/fr.po"
58 run job=$JobName level=Incremental Pool=Default yes
60 @exec "touch $cwd/build/po/fr.po"
61 run job=$JobName level=Incremental Pool=Default yes
63 @exec "touch $cwd/build/po/fr.po"
64 run job=$JobName level=Incremental Pool=Default yes
66 @#setdebug level=150 storage=tape trace=1
67 run job=$JobName level=VirtualFull yes
79 check_for_zombie_jobs storage=tape