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-job-test"
11 scripts/copy-test-confs
12 echo "${cwd}/build" >${cwd}/tmp/file-list
14 change_jobname NightlySave $JobName
17 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
20 @$out ${cwd}/tmp/log1.out
21 setdebug level=0 trace=0 hangup=100 client
22 @#setdebug level=20 dir
23 label storage=File volume=TestVolume001
28 select * from JobMedia where JobId=1;
35 scripts/check_for_zombie_jobs storage=File
37 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
43 @$out ${cwd}/tmp/log2.out
44 restore where=$tmp/bacula-restores storage=File select all done
52 scripts/check_for_zombie_jobs storage=File