]> git.sur5r.net Git - bacula/bacula/commitdiff
Update 2drive stuff
authorKern Sibbald <kern@sibbald.com>
Thu, 18 Aug 2005 12:36:57 +0000 (12:36 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 18 Aug 2005 12:36:57 +0000 (12:36 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2330 91ce42f0-d328-0410-95d8-f526ca767f89

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

index a54de6b4b2157bf575fbc8942831f226ea0fef79..84898c71900135d35a166d87becf132a38ff7ba3 100644 (file)
@@ -13,7 +13,7 @@
 #
 
 Director {                            # define myself
-  Name = rufus-dir
+  Name = roxie-dir
   DIRport = 8101                # where we listen for UA connections
   QueryFile = "/home/kern/bacula/regress/bin/query.sql"
   WorkingDirectory = "/home/kern/bacula/regress/working"
index 1801abb5062a4c3b55ad5c184b9a6b54f4b253c2..705407f8390e5c1a29a1a54bd765473237230149 100755 (executable)
@@ -12,6 +12,7 @@ if ! test x@autochanger@ = x/dev/null; then
    fi
    mt -f @tape_drive1@ rewind
    mt -f @tape_drive1@ weof
+   bin/mtx-changer @autochanger@ unload 2 @tape_drive1@ 1
 fi
 
 
@@ -28,3 +29,4 @@ fi
 
 mt -f @tape_drive@ rewind
 mt -f @tape_drive@ weof
+bin/mtx-changer @autochanger@ unload 1 @tape_drive@ 0
index 5877cea6e371dbc7cc470106e3a4e4b634bfd22d..d25a351fa2721fed1ed1c512c907312967594c98 100755 (executable)
@@ -3,4 +3,8 @@
 /bin/cp -f scripts/bacula-sd-2drive.conf bin/bacula-sd.conf
 /bin/cp -f scripts/test-bacula-fd.conf bin/bacula-fd.conf
 /bin/cp -f scripts/test-console.conf bin/bconsole.conf
+outf="tmp/sed_tmp"
+echo "s%# Autochanger = yes%  Autochanger = yes%g" >${outf}
+cp bin/bacula-dir.conf tmp/1
+sed -f ${outf} tmp/1 >bin/bacula-dir.conf
 touch bin/tape_options
index 1eed24f84f9604983435760de3affae8023dc05e..c2c84d6b6264b66caa0977804d257eb172eaf6bd 100755 (executable)
@@ -42,10 +42,11 @@ cat <<END_OF_DATA >tmp/bconcmds
 @$out /dev/null
 messages
 @$out tmp/log1.out
-label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default
-label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default
+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
 wait
+status storage=DDS-4
 messages
 quit
 END_OF_DATA
@@ -59,14 +60,17 @@ else
 fi
 echo "ficheriro1.txt" >${cwd}/tmp/build/ficheriro1.txt
 echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
-bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
+
+cat <<END_OF_DATA >tmp/bconcmds
 @$out /dev/null
 messages
 @$out tmp/log1.out
 @# Force Incremental on the second Volume
 update volume=TestVolume001 VolStatus=Used
+status storage=DDS-4
 run level=Incremental job=NightlySave yes
 wait
+status storage=DDS-4
 messages
 @# 
 @# now do a restore
@@ -82,6 +86,14 @@ messages
 @$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
+
 bin/bacula stop 2>&1 >/dev/null
 grep "^  Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
 bstat=$?