3 # Run a simple backup of the Bacula build directory
4 # then verify the Volume to the catalog.
5 # This test should not be in the normal tests run since it
6 # requires creating a mount point.
12 # mount -t ext3 /dev/sda1 xx/boot
13 # (where /dev/sda1 is your boot partion, or some other small partition)
16 TestName="verify-voltocat-test"
22 scripts/copy-test-confs
23 echo "${cwd}/xx" >${cwd}/tmp/file-list
24 echo "${cwd}/xx/boot" >>${cwd}/tmp/file-list
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 to catalog
41 @$out ${cwd}/tmp/log2.out
43 run job=VerifyVolume level=VolumeToCatalog
54 check_for_zombie_jobs storage=File
57 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
59 grep "^ Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null