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
+ Prefer Mounted Volumes = no
# Autochanger = yes
}
#!/bin/sh
/bin/cp -f scripts/win32-bacula-dir-tape.conf bin/bacula-dir.conf
/bin/cp -f scripts/win32-bacula-sd-tape.conf bin/bacula-sd.conf
-/bin/cp -f scripts/test-bacula-fd.conf bin/bacula-fd.conf
+/bin/cp -f scripts/win32-bacula-fd.conf bin/bacula-fd.conf
/bin/cp -f scripts/test-console.conf bin/bconsole.conf
touch bin/tape_options
Maximum Concurrent Jobs = 4
}
+Client {
+ Name = localhost-fd
+ Address = localhost
+ FDPort = 8102
+ Catalog = MyCatalog
+ Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"
+ File Retention = 30d # 30 days
+ Job Retention = 180d # six months
+ AutoPrune = yes # Prune expired Jobs/Files
+ Maximum Concurrent Jobs = 4
+}
+
+
# Definition of DDS tape storage device
Storage {
Name = DDS-4
label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=0
label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=1
run job=NightlySave yes
+run job=NightlySave yes
wait
status storage=DDS-4
messages
#
# Test if Bacula can automatically create a Volume label.
#
+
+debug=0
+if test "$debug" -eq 1 ; then
+ out="tee"
+else
+ out="output"
+fi
cwd=`pwd`
scripts/copy-test-confs
scripts/cleanup
echo " === Starting auto-label-test at `date +%R:%S` ===" >>working/log
echo " "
-bin/bacula start 2>&1 >/dev/null
-bin/bconsole -c bin/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
-@output /dev/null
+cat <<END_OF_DATA >tmp/bconcmds
+@$out /dev/null
status all
status all
list pools
messages
-@output tmp/log1.out
+@$out tmp/log1.out
run job=CompressedTest storage=File yes
list pools
list volumes
@#
@# now do a restore
@#
-@output tmp/log2.out
+@$out tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select storage=File
unmark *
mark *
yes
wait
messages
-@output
+@$out
quit
END_OF_DATA
+
+if test "$debug" -eq 1 ; then
+ bin/bacula start
+ cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf
+else
+ bin/bacula start 2>&1 >/dev/null
+ cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null
+fi
+
scripts/check_for_zombie_jobs storage=File
bin/bacula stop 2>&1 >/dev/null