]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/bsr-opt-test
Backport from Bacula Enterprise
[bacula/bacula] / regress / tests / bsr-opt-test
index d76e7736572c2451bb3c6c2f46c7696f9c8d98f9..a5dcb25f7574f61811e3bc6b8674bb09d486242a 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
 label storage=File1 volume=TestVolume002
-update Volume=TestVolume001 MaxVolBytes=3000000
+update Volume=TestVolume001 MaxVolBytes=$MaxVolBytes
 run job=$JobName storage=File1 yes
 wait
 messages