Maximum Concurrent Jobs = 4
Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
Messages = Daemon
+ FD Connect Timeout = 2min
}
#
# Prefer Mounted Volumes = no
}
+#
+# Note, this client does not exist so the job will
+# fail
+#
+Job {
+ Name = "Offline"
+ Type = Backup
+ Client=@hostname@-fd1
+ FileSet="Full Set"
+ Storage = DDS-4
+ Messages = Standard
+ Pool = Default
+ Write Bootstrap = "@working_dir@/NightlySave.bsr"
+ Maximum Concurrent Jobs = 4
+ SpoolData = yes
+# Prefer Mounted Volumes = no
+}
+
+
Job {
Name = "NightlySave1"
Type = Backup
Maximum Concurrent Jobs = 4
}
+Client {
+ Name = @hostname@-fd1
+ Address = @hostname@
+ FDPort = 1@fdport@ # nothing should be on this port!!!!!
+ Catalog = MyCatalog
+ Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
+ 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
# Also scan logs for ERROR messages
#
+. ./config
+
# check_for_zombie_jobs storage=STORAGE [client=localhost-fd]
if [ $# = 2 ] ; then
client="$2"
else
- client="client"
+ client=${HOST}-fd
fi
bin/bconsole -c bin/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
@output tmp/dir.out
status dir
@output tmp/fd.out
-status $client
+status client=${client}
@output tmp/sd.out
status $1
@output
# A set of useful functions to be sourced in each test
#
+
start_test()
{
# Turn off email
# Source the configuration variables
. ${cwd}/config
+
echo "${cwd}/build" >${cwd}/tmp/file-list
echo "${cwd}/build" >${cwd}/tmp/file-list
echo "${cwd}/build" >${cwd}/tmp/file-list
-echo "${cwd}/build" >${cwd}/tmp/file-list
start_test
@# Start job with Client run before and sleep
run job=NightlySave1 level=Full pool=Default yes
run job=NightlySave1 level=Full pool=Default yes
-run job=NightlySave1 level=Full pool=Default yes
@# wait between starting jobs
@sleep 30
@#setdebug level=100 storage=DDS-4
run job=NightlySave2 level=Full pool=Full yes
run job=NightlySave2 level=Full pool=Full yes
-run job=NightlySave2 level=Full pool=Full yes
@sleep 10
messages
@sleep 10
@# now do a restore
@#
@$out tmp/log2.out
+release storage=DDS-4 drive=0
+release storage=DDS-4 drive=1
restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
yes
wait