3 # Run a accurate backup of the Bacula build directory
6 TestName="accurate-test"
12 /bin/cp -f scripts/bacula-dir.conf.accurate bin/bacula-dir.conf
14 rm -rf ${cwd}/build/accurate.new
15 rm -rf ${cwd}/build/accurate
17 change_jobname Client1 $JobName
18 mkdir ${cwd}/build/accurate
19 echo "test test" > ${cwd}/build/accurate/xxx
20 echo "test test" > ${cwd}/build/accurate/yyy
21 echo "test test" > ${cwd}/build/accurate/zzz
22 echo ${cwd}/build > ${cwd}/tmp/file-list
26 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
29 label volume=TestVolume001 storage=File pool=Default
35 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
36 @$out ${cwd}/tmp/log1.out
43 @$out ${cwd}/tmp/log2.out
44 restore where=${cwd}/tmp/bacula-restores select all done
53 check_for_zombie_jobs storage=File
58 rm -rf ${cwd}/tmp/bacula-restores
60 # Now do a second backup after making a few changes
62 rm ${cwd}/build/accurate/xxx
65 check_for_zombie_jobs storage=File
70 rm -rf ${cwd}/tmp/bacula-restores
72 # Now do a second backup after making a few changes
74 mv ${cwd}/build/accurate ${cwd}/build/accurate.new
77 check_for_zombie_jobs storage=File
82 rm -rf ${cwd}/tmp/bacula-restores