3 # Run a simple backup of the Bacula build directory
4 # then verify the catalog.
6 TestName="verify-vol-test"
12 scripts/copy-test-confs
13 echo "${cwd}/build" >${cwd}/tmp/file-list
14 rm -f ${cwd}/build/sparsefile
16 # Add this back when verify can handle sparse files
17 # the same way that backup does
19 #dd if=${cwd}/build/configure of=${cwd}/build/sparsefile bs=1 count=1 seek=10M
21 change_jobname NightlySave $JobName
24 cat <<END_OF_DATA >tmp/bconcmds
28 setdebug level=1 storage=File sd
29 label storage=File volume=TestVolume001
34 @# now do a verify volume
36 @$out ${cwd}/tmp/log2.out
42 @$out ${cwd}/tmp/log3.out
43 run job=VerifyVolume level=DiskToCatalog
52 # Note, add sparse file backup and check that checksum is
55 # dd if=/dev/zero of=sparsefile bs=1 count=0 seek=10M
61 check_for_zombie_jobs storage=File
64 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
66 grep "^ Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null
68 if test $rstat=0; then
69 grep "^ Termination: *Verify OK" tmp/log3.out 2>&1 >/dev/null