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
14 echo "${cwd}/build/po" >>${cwd}/tmp/file-list
15 cp $conf/bacula-dir.conf $tmp/1
16 sed 's/"VerifyVol"/"VerifyVol"; Accurate = yes/' $tmp/1 > $conf/bacula-dir.conf
18 change_jobname NightlySave $JobName
21 cat <<END_OF_DATA >tmp/bconcmds
25 setdebug level=1 storage=File sd
26 label storage=File volume=TestVolume001
31 @# now do a verify to catalog
33 @$out ${cwd}/tmp/log2.out
35 run job=VerifyVolume level=VolumeToCatalog
45 # we make a test in accurate mode
46 mv $cwd/build/po/fr.po $cwd/build/po/fr.po.old
48 cat <<END_OF_DATA >tmp/bconcmds
52 run level=incremental job=$JobName yes
56 @# now do a verify to catalog
58 @$out ${cwd}/tmp/log22.out
59 @# The fr.po file shouldn't be appear as new file
61 run job=VerifyVolume level=VolumeToCatalog
70 mv $cwd/build/po/fr.po.old $cwd/build/po/fr.po
73 check_for_zombie_jobs storage=File
76 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
78 grep "^ Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null
81 grep "^ Termination: *Backup OK" tmp/log11.out 2>&1 >/dev/null
82 bstat=$(($bstat + $?))
83 grep "^ Termination: *Verify OK" tmp/log22.out 2>&1 >/dev/null
84 rstat=$(($bstat + $?))