3 # Run a simple backup of the Bacula build directory
4 # to a tape where we set the minimum and maximum block
8 scripts/copy-tape-confs
10 echo "${cwd}/build" >/tmp/file-list
12 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
13 echo "s%# Maximum Block Size% Maximum Block Size%" >${cwd}/tmp/2
14 echo "s%# Minimum Block Size% Minimum Block Size%" >>${cwd}/tmp/2
15 sed -f ${cwd}/tmp/2 ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
19 echo "!!!! sed problem in Fixed Block Size test !!!!!"
23 rm -f ${cwd}/tmp/1 ${cwd}/tmp/2
27 echo " === Starting Fixed Block Size test ==="
28 echo " === Starting Fixed Block Size test ===" >>working/log
31 bin/bacula start 2>&1 >/dev/null
32 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
36 label storage=DDS-4 volume=TestVolume001 slot=0
37 run job=NightlySave yes
44 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
54 scripts/check_for_zombie_jobs storage=DDS-4
56 bin/bacula stop 2>&1 >/dev/null
57 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
59 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
61 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
62 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
65 echo " !!!!! Fixed Block Size test Bacula source failed!!! !!!!! "
66 echo " !!!!! Fixed Block Size test failed!!! !!!!! " >>test.out
69 echo " ===== Fixed Block Size test Bacula source OK ===== "
70 echo " ===== Fixed Block Size test OK ===== " >>test.out