3 # Run a simple backup of the Bacula build directory using the compressed option
4 # then backup four times, each with incremental then
5 # do a bscan and restore.
6 # It should require at least 4 different bsrs.
16 echo "${cwd}/build" >${cwd}/tmp/file-list
18 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
19 # sed "s%# Maximum File Size% Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
21 change_jobname NightlySave $JobName
24 cat <<END_OF_DATA >tmp/bconcmds
28 setdebug level=2 storage=DDS-4
29 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
36 echo "Starting Bacula tape writing"
37 #bin/btape -c bin/bacula-sd.conf /dev/nst0 <<END_OF_DATA
51 #check_for_zombie_jobs storage=DDS-4
53 echo "End writing tape"
56 # now drop and recreate the database
59 ./drop_bacula_tables >/dev/null 2>&1
60 ./make_bacula_tables >/dev/null 2>&1
61 ./grant_bacula_privileges 2>&1 >/dev/null
64 echo "Begin attempt to read tape that crashes the system"
65 echo "volume=TestVolume001" >tmp/bscan.bsr
69 strace -o strace.new bin/bscan -d200 -w working $BSCANLIBDBI -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf DDS-4
71 cat <<END_OF_DATA >tmp/bconcmds
78 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
87 check_for_zombie_jobs storage=DDS-4
89 rm -f ${cwd}/build/src/lib/dummy