]> git.sur5r.net Git - bacula/bacula/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Mon, 14 Nov 2005 21:06:38 +0000 (21:06 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 14 Nov 2005 21:06:38 +0000 (21:06 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2589 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/bacula-dir-tape.conf.in
regress/scripts/copy-win32-confs
regress/scripts/win32-bacula-dir-tape.conf.in
regress/tests/2drive-incremental-2tape
regress/tests/auto-label-test

index 9b21deae3c82972f03dddcc71f8d18bf04ff15b1..37de8ad3c1b2af3b55e25e68254e29fc31585993 100644 (file)
@@ -95,6 +95,7 @@ Storage {
   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
 }
 
index e301ef9ee44ffbc94cac1d67cd9ff293903b2ddb..61483fa15f21027f55b9808a00b7e9e6ef886969 100755 (executable)
@@ -1,6 +1,6 @@
 #!/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
index 4f84e181903584ec7cfa8c29e0be1fc0ce357e42..5c2af4f967f92aecf697c323bf43446f79773c15 100644 (file)
@@ -89,6 +89,19 @@ Client {
   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
index 7f8d90c2b7c89321c5a185112a1af46f61dfa239..c460d178514cd5e8703f10217639ee6d34ee0bc8 100755 (executable)
@@ -45,6 +45,7 @@ messages
 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
index aa8e56f2fe396275a1ce20d1a00576be533b5a43..2e020e766bacd5a9ef899168fc384d5fc45dad91 100755 (executable)
@@ -2,6 +2,13 @@
 #
 #  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
@@ -16,14 +23,13 @@ echo " === Starting auto-label-test at `date +%R:%S` ==="
 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
@@ -32,7 +38,7 @@ messages
 @# 
 @# now do a restore
 @#
-@output tmp/log2.out
+@$out tmp/log2.out
 restore where=${cwd}/tmp/bacula-restores select storage=File
 unmark *
 mark *
@@ -49,9 +55,18 @@ done
 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