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
14 echo "${cwd}/build" >/tmp/file-list
15 change_jobname $JobName
19 cat >tmp/bconcmds <<END_OF_DATA
20 setdebug level=15 storage=File
24 estimate job=CompressedTest listing
25 estimate job=CompressedTest listing
26 estimate job=CompressedTest listing
29 label storage=File volume=TestVolume001
30 run job=CompressedTest yes
37 check_for_zombie_jobs storage=File
40 touch ${cwd}/build/src/dird/*.c
44 cat >tmp/bconcmds <<END_OF_DATA
48 run job=CompressedTest
53 @# now do several restores to ensure we cleanup between jobs
56 restore where=${cwd}/tmp/bacula-restores select all storage=File done
59 restore where=${cwd}/tmp/bacula-restores select all storage=File done
63 restore where=${cwd}/tmp/bacula-restores select storage=File
75 check_for_zombie_jobs storage=File