3 # Run a simple backup of the Bacula build directory
4 # then verify the Volume to the catalog.
6 TestName="verify-voltocat-test"
12 scripts/copy-test-confs
13 echo "${cwd}/build" >${cwd}/tmp/file-list
15 change_jobname NightlySave $JobName
18 cat <<END_OF_DATA >tmp/bconcmds
22 setdebug level=1 storage=File sd
23 label storage=File volume=TestVolume001
28 @# now do a verify to catalog
30 @$out ${cwd}/tmp/log2.out
32 run job=VerifyVolume level=VolumeToCatalog
36 @$out ${cwd}/tmp/log3.out
38 @# Now a backup with nothing changed
39 run job=$JobName level=Incremental yes
42 run job=VerifyVolume level=VolumeToCatalog
53 check_for_zombie_jobs storage=File
56 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
58 grep "^ Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null
60 grep "^ Termination: *Verify OK" tmp/log3.out 2>&1 >/dev/null