# Prefer Mounted Volumes = no
}
+Job {
+ Name = "NightlySave1"
+ Type = Backup
+ Client=@hostname@-fd
+ 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
+ Client Run Before Job = "/bin/sleep 120"
+}
+
+Job {
+ Name = "NightlySave2"
+ Type = Backup
+ Client=@hostname@-fd
+ 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
+}
+
# Standard Restore template, to be changed by Console program
Job {
chmod 777 ${cwd}/bin/mtx-changer
# get proper SD tape definitions
-touch ${cwd}/bin/tape_options
-if test x`uname` = xLinux ; then
- cp -f ${cwd}/scripts/linux_tape_options ${cwd}/bin/tape_options
-fi
+cp -f ${cwd}/scripts/linux_tape_options ${cwd}/bin/tape_options
if test x`uname` = xFreeBSD ; then
cp -f ${cwd}/scripts/freebsd_tape_options ${cwd}/bin/tape_options
fi
# split the archive into two volumes, then build a BSR with
# the restore command and use bextract to restore the files.
#
-debug=0
+debug=1
if test "$debug" -eq 1 ; then
out="tee"
else
echo " "
cat <<END_OF_DATA >tmp/bconcmds
-@$out /dev/null
+@output /dev/null
messages
@$out tmp/log1.out
label storage=File1 volume=TestVolume001
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=1 pool=Full drive=0
label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
-run job=NightlySave level=Full pool=Default yes
+list volumes
+@# Start job with Client run before and sleep
+run job=NightlySave1 level=Full pool=Default yes
@# wait between starting jobs
@sleep 60
@#setdebug level=100 storage=DDS-4
-run job=NightlySave level=Full pool=Full yes
+run job=NightlySave2 level=Full pool=Full yes
@sleep 10
messages
@sleep 10
status storage=DDS-4
messages
wait
+list volumes
messages
@#
@# now do a restore