3 # Run a simple backup of the Bacula build directory using the compressed option
4 # then backup a second time and finally restore it
6 TestName="two-jobs-test"
12 scripts/copy-test-confs
13 echo "${cwd}/build" >/tmp/file-list
15 change_jobname CompressedTest $JobName
18 cat >tmp/bconcmds <<END_OF_DATA
19 setdebug level=15 storage=File
23 estimate job=$JobName listing
24 estimate job=$JobName listing
25 estimate job=$JobName listing
28 label storage=File volume=TestVolume001
36 check_for_zombie_jobs storage=File
39 touch ${cwd}/build/src/dird/*.c
43 cat >tmp/bconcmds <<END_OF_DATA
52 @# now do several restores to ensure we cleanup between jobs
55 restore where=${cwd}/tmp/bacula-restores select all storage=File done
58 restore where=${cwd}/tmp/bacula-restores select all storage=File done
62 restore where=${cwd}/tmp/bacula-restores select storage=File
74 check_for_zombie_jobs storage=File