3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory
9 # then verify the catalog.
11 TestName="verify-vol-test"
17 scripts/copy-test-confs
18 echo "${cwd}/build" >${cwd}/tmp/file-list
19 rm -f ${cwd}/build/sparsefile
21 # Add this back when verify can handle sparse files
22 # the same way that backup does
24 #dd if=${cwd}/build/configure of=${cwd}/build/sparsefile bs=1 count=1 seek=10M
26 change_jobname NightlySave $JobName
29 cat <<END_OF_DATA >tmp/bconcmds
33 setdebug level=1 storage=File sd
34 label storage=File volume=TestVolume001
39 @# now do a verify volume
41 @$out ${cwd}/tmp/log2.out
47 @$out ${cwd}/tmp/log3.out
48 run job=VerifyVolume level=DiskToCatalog
57 # Note, add sparse file backup and check that checksum is
60 # dd if=/dev/zero of=sparsefile bs=1 count=0 seek=10M
66 check_for_zombie_jobs storage=File
69 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
71 grep "^ Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null
73 if test $rstat=0; then
74 grep "^ Termination: *Verify OK" tmp/log3.out 2>&1 >/dev/null