]> git.sur5r.net Git - bacula/bacula/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Sat, 3 Dec 2005 16:48:04 +0000 (16:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 3 Dec 2005 16:48:04 +0000 (16:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2637 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/bacula-dir-tape.conf.in
regress/scripts/do_sed
regress/tests/bextract-test
regress/tests/two-pool-tape

index 0c05d192027fe34df93931868bc8379b3817b3eb..fc5b15b8b21a70b96de0b4594bb630d08893d789 100644 (file)
@@ -40,6 +40,35 @@ Job {
 # 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 {
index 3315e38e2975f08cc71ca719e9fe71a9cc8ee595..477d2fc269d05399a3ea8bc6dce34608f5b7353c 100755 (executable)
@@ -56,10 +56,7 @@ sed "s%^MTX.*$%MTX=${4}%g" /tmp/bac$$ >${cwd}/bin/mtx-changer
 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
index b51f48f53375e18e014cce92f2e81fba6db68def..44950aa28ea524e3e18ea50f8c1973859ee99003 100755 (executable)
@@ -4,7 +4,7 @@
 #   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
@@ -23,7 +23,7 @@ echo " === Starting bextract-test at `date +%R:%S` ===" >working/log
 echo " "
 
 cat <<END_OF_DATA >tmp/bconcmds
-@$out /dev/null
+@output /dev/null
 messages
 @$out tmp/log1.out
 label storage=File1 volume=TestVolume001
index e84cbecd5740da460caf129e050a326dcfce6401..38c59e6ea5defa843aa499add93996d2cd92b2e8 100755 (executable)
@@ -82,11 +82,13 @@ messages
 @$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
@@ -95,6 +97,7 @@ messages
 status storage=DDS-4
 messages
 wait
+list volumes
 messages
 @# 
 @# now do a restore