Device = DDS-4 # must be same as Device in Storage daemon
Media Type = DDS-4 # must be same as MediaType in Storage daemon
Maximum Concurrent Jobs = 4
+# Autochanger = yes
}
/bin/cp -f scripts/bacula-sd-2tape.conf bin/bacula-sd.conf
/bin/cp -f scripts/test-bacula-fd.conf bin/bacula-fd.conf
/bin/cp -f scripts/test-console.conf bin/bconsole.conf
+outf="tmp/sed_tmp"
+echo "s%# Autochanger = yes% Autochanger = yes%g" >${outf}
+cp bin/bacula-dir.conf tmp/1
+sed -f ${outf} tmp/1 >bin/bacula-dir.conf
touch bin/tape_options
@$out /dev/null
messages
@$out tmp/log1.out
-label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default
-label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default
+label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=0
+label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=0
run job=NightlySave yes
wait
messages
# Note, this test simulates the tape filling and writing to
# the next tape.
#
-debug=0
+debug=1
if test "$debug" -eq 1 ; then
out="tee"
else
@$out /dev/null
messages
@$out tmp/log1.out
-label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default
-label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default
-update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default
+label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
+label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
+update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default drive=0
+@#setdebug level=1000 client
run job=NightlySave yes
wait
messages