]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/bsr-opt-test
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / bsr-opt-test
index 8b9c8758dace371875859d69799cd2a7098b7e28..9f20963b2e5ac97703f94471ee6b9a84560c26b5 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
 #
 # Run a simple backup of the Bacula build directory but 
 #   split the archive into two volumes, then restore
@@ -17,13 +22,14 @@ echo "${cwd}/build" >${cwd}/tmp/file-list
 change_jobname NightlySave $JobName
 start_test
 
+MaxVolBytes=3000000
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume001 pool=Default
-label storage=File1 volume=TestVolume002 pool=Default
-update Volume=TestVolume001 MaxVolBytes=3000000
+label storage=File1 volume=TestVolume001
+label storage=File1 volume=TestVolume002
+update Volume=TestVolume001 MaxVolBytes=$MaxVolBytes
 run job=$JobName storage=File1 yes
 wait
 messages
@@ -31,7 +37,7 @@ messages
 @# now do a restore
 @#
 @$out ${cwd}/tmp/log2.out
-setdebug level=150 storage=File1
+setdebug level=150 storage=File1 trace=1
 restore bootstrap=${cwd}/working/restore.bsr where=${cwd}/tmp/bacula-restores select storage=File1
 unmark *
 cd ${cwd}/build/src/cats
@@ -41,7 +47,6 @@ done
 yes
 wait
 messages
-@$out
 quit
 END_OF_DATA