]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/copy-volume-test
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / copy-volume-test
index 106aa76492e92f9792b8f14f6a9e71df5941b234..9ddcf1a032e6513d9c285a001ae3225450816935 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (C) 2000-2017 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
 #
 # Run a backup of the Bacula build directory on two Volumes
 #   then copy it to another device.             
@@ -32,9 +37,11 @@ start_test
 
 # Write out bconsole commands
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output
+@output /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
+setdebug level=50 storage=DiskChanger
+@#setdebug level=100 Dir
 label storage=File volume=FileVolume001 Pool=Default
 label storage=File volume=FileVolume002 Pool=Scratch
 update Volume=FileVolume001 MaxVolBytes=3000000 pool=Default
@@ -86,14 +93,15 @@ messages
 @#  Use File instead of DiskChanger
 @#  Files are there        
 @############################################################
-restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
+@# Note, here we are restoring from the original backup,
+@#  so if you specify storage=DiskChanger the restore will fail
+restore where=${cwd}/tmp/bacula-restores select
 unmark *
 mark *
 done
 yes
 wait
 messages
-@output
 quit
 END_OF_DATA
 
@@ -113,9 +121,12 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @#  Files are there
 @############################################################
 @$out ${cwd}/tmp/log3.out
+setdebug level=50 storage=DiskChanger
 purge volume=FileVolume001 yes
 purge volume=FileVolume002 yes
-restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
+@# Note, here we are restoring from the original backup,
+@#  so if you specify storage=DiskChanger the restore will fail
+restore where=${cwd}/tmp/bacula-restores select
 unmark *
 mark *
 done
@@ -146,6 +157,7 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 run job=$JobName yes
 wait
 messages
+setdebug level=50 storage=DiskChanger
 restore where=${cwd}/tmp/bacula-restores select all
 done
 yes