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 Volume to the catalog.
11 TestName="verify-voltocat-test"
17 scripts/copy-test-confs
18 echo "${cwd}/build" >${cwd}/tmp/file-list
20 change_jobname NightlySave $JobName
23 cat <<END_OF_DATA >tmp/bconcmds
27 setdebug level=1 storage=File sd
28 label storage=File volume=TestVolume001
29 run level=full job=$JobName yes
33 run level=full job=$JobName yes
37 @# now do a verify to catalog
39 @$out ${cwd}/tmp/log2.out
41 run job=VerifyVolume level=VolumeToCatalog
45 @$out ${cwd}/tmp/log4.out
47 run job=VerifyVolume jobid=1 level=VolumeToCatalog
51 @$out ${cwd}/tmp/log3.out
53 @# Now a backup with nothing changed
54 run job=$JobName level=Incremental yes
57 run job=VerifyVolume level=VolumeToCatalog
67 check_for_zombie_jobs storage=File
70 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
72 grep "^ Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null
74 grep "^ Termination: *Verify OK" tmp/log3.out 2>&1 >/dev/null
76 grep "Verify JobId: *2" tmp/log2.out 2>&1 >/dev/null
77 dstat=$(($dstat + $?))
78 grep "Verify JobId: *1" tmp/log4.out 2>&1 >/dev/null
79 dstat=$(($dstat + $?))
80 grep "Verify Job: *VerifyVol" tmp/log4.out 2>&1 >/dev/null
81 dstat=$(($dstat + $?))