#!/bin/sh
#
-# Run a simple backup of the Bacula build directory
-# to two tapes where the maximum tape file size is set to 1M
#
TestName="eot-fail-tape"
JobName=eotfailtape
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@output /dev/null
messages
-@$out ${cwd}/tmp/log1.out
+@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
-update Volume=TestVolume001 MaxVolBytes=3000000
+#update Volume=TestVolume001 MaxVolBytes=3000000
run job=$JobName yes
wait
messages
@#
@# now do a restore
@#
-@$out ${cwd}/tmp/log2.out
+@$out tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
yes
wait