3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a backup of the build directory but force it to have
9 # a comm error, and check that it restarts correctly.
11 TestName="restart-job-test"
16 scripts/copy-test-confs
19 echo "${cwd}/build" >${cwd}/tmp/file-list
21 change_jobname NightlySave $JobName
24 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
27 @$out ${cwd}/tmp/log1.out
28 setdebug level=0 trace=0 hangup=596 client
29 @#setdebug level=20 dir
30 label storage=File volume=TestVolume001 slot=1 drive=0
35 select * from JobMedia where JobId=1;
42 scripts/check_for_zombie_jobs storage=File
44 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
50 @$out ${cwd}/tmp/log2.out
51 restore where=$tmp/bacula-restores storage=File select all done
59 scripts/check_for_zombie_jobs storage=File