3 # Run a simple backup of the Bacula build directory
4 # to two tapes where the maximum tape file size is set to 1M
7 scripts/copy-tape-confs
10 echo "${cwd}/build" >/tmp/file-list
13 echo "s%# Maximum File Size% Maximum File Size%g" >${out}
14 cp -f ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
15 sed -f ${out} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
19 echo " === Starting eot-fail-tape test at `date +%R:%S` ==="
20 echo " === Starting eot-fail-tape test at `date +%R:%S` ===" >>working/log
23 bin/bacula start -d100
24 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
28 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
29 update Volume=TestVolume001 MaxVolBytes=3000000
30 run job=NightlySave yes
37 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
44 scripts/check_for_zombie_jobs storage=DDS-4
46 bin/bacula stop 2>&1 >/dev/null
47 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
49 grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
51 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
52 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
55 echo " !!!!! eot-fail-tape test Bacula source failed!!! !!!!! "
56 echo " !!!!! eot-fail-tape test failed!!! !!!!! " >>test.out
59 echo " ===== eot-fail-tape test Bacula source OK ===== "
60 echo " ===== eot-fail-tape test OK ===== " >>test.out