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
15 dd if=${cwd}/build/configure of=${cwd}/build/sparsefile bs=1 count=1 seek=10M
17 change_jobname NightlySave $JobName
20 cat <<END_OF_DATA >tmp/bconcmds
24 setdebug level=1 storage=File sd
25 label storage=File volume=TestVolume001
30 @# now do a verify volume
32 @$out ${cwd}/tmp/log2.out
38 @$out ${cwd}/tmp/log3.out
39 run job=VerifyVolume level=DiskToCatalog
49 # Note, add sparse file backup and check that checksum is
52 # dd if=/dev/zero of=sparsefile bs=1 count=0 seek=10M
58 check_for_zombie_jobs storage=File
61 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
63 grep "^ Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null
65 if test $rstat=0; then
66 grep "^ Termination: *Verify OK" tmp/log3.out 2>&1 >/dev/null