3 # Run a backup of the build directory but force it to have
4 # a comm error, and check that it restarts correctly.
6 TestName="restart-accurate-job-test"
11 scripts/copy-test-confs
12 echo "${cwd}/build" >${cwd}/tmp/file-list
14 change_jobname NightlySave $JobName
16 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'Accurate', 'yes', 'Job', 'RestartJob')"
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
22 @$out ${cwd}/tmp/log1.out
23 label storage=File volume=TestVolume001
24 setdebug level=0 trace=0 hangup=100 client
25 @#setdebug level=20 dir
34 scripts/check_for_zombie_jobs storage=File
36 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
38 setdebug level=0 trace=0 hangup=50 client
39 @exec "sh -c 'touch $cwd/build/po/*'"
40 @exec "sh -c 'touch $cwd/build/src/dird/*'"
47 @$out ${cwd}/tmp/log2.out
48 restore where=$tmp/bacula-restores storage=File select all done
56 scripts/check_for_zombie_jobs storage=File