3 # Set prefer mounted volumes to no to try to force use of
6 # This script uses the virtual disk autochanger and two drives
13 scripts/copy-2disk-drive-confs
14 scripts/prepare-two-disks
16 change_jobname NightlySave $JobName
19 echo "${cwd}/build" >${cwd}/tmp/file-list
21 # Turn off Prefer Mounted Volumes so we use 2 drives
22 outf="${cwd}/tmp/sed_tmp"
23 echo "s%# Prefer Mounted Volumes% Prefer Mounted Volumes%g" >${outf}
24 cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
25 # Comment the next line out to write everything to one drive
26 # otherwise, it writes the two jobs to different drives
27 sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
29 # Write out bconsole commands
30 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
33 @$out ${cwd}/tmp/log1.out
34 label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=0
35 label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=1
37 @#setdebug level=120 storage=DDS-4
38 run job=$JobName level=Full yes
40 run job=$JobName level=Full yes
44 update volume=TestVolume001 maxvolbytes=40123123
45 setdebug level=150 storage=DDS-4
46 run job=$JobName level=Full yes
56 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
61 @$out ${cwd}/tmp/log2.out
62 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
71 check_for_zombie_jobs storage=DDS-4