3 # Run a simple backup of the Bacula build directory but
4 # split the archive into two volumes then bscan it
5 # into the catalog after the backup. It also to a limited
6 # extent tests the purge volume and delete volume commands.
15 scripts/copy-test-confs
17 echo "${cwd}/build" >/tmp/file-list
19 change_jobname $JobName
22 cat <<END_OF_DATA >tmp/bconcmds
30 update Volume=TestVolume001 MaxVolBytes=3000000
31 run job=$JobName storage=File1
37 @# now purge the Volume
39 purge volume=TestVolume001
40 purge volume=TestVolume002
41 delete volume=TestVolume001
43 delete volume=TestVolume002
50 check_for_zombie_jobs storage=File1
53 echo "volume=TestVolume001|TestVolume002" >tmp/bscan.bsr
55 if test "$debug" -eq 1 ; then
56 bin/bscan -w working -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp
58 bin/bscan -w working -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp 2>&1 >/dev/null
61 cat <<END_OF_DATA >tmp/bconcmds
68 @#setdebug level=400 storage=File1
69 restore bootstrap=${cwd}/tmp/kern.bsr where=${cwd}/tmp/bacula-restores select all storage=File1 done
79 check_for_zombie_jobs storage=File1