3 # Run a simple backup of the Bacula build directory using the compressed option
4 # then backup four times, each with incremental then finally restore.
5 # It should require at least 4 different bsrs.
7 TestName="four-jobs-test"
12 scripts/copy-test-confs
13 echo "${cwd}/build" >/tmp/file-list
15 change_jobname CompressedTest $JobName
18 cat <<END_OF_DATA >tmp/bconcmds
20 estimate job=$JobName listing
21 estimate job=$JobName listing
22 estimate job=$JobName listing
25 label storage=File volume=TestVolume001
33 check_for_zombie_jobs storage=File
35 # make some files for the incremental to pick up
36 touch ${cwd}/build/src/dird/*.c ${cwd}/build/src/dird/*.o
37 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
42 cat <<END_OF_DATA >tmp/bconcmds
53 check_for_zombie_jobs storage=File
56 touch ${cwd}/build/src/dird/*.c
57 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
61 cat <<END_OF_DATA >tmp/bconcmds
72 check_for_zombie_jobs storage=File
75 # make some files for the incremental to pick up
76 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
80 cat <<END_OF_DATA >tmp/bconcmds
91 check_for_zombie_jobs storage=File
95 # now do several restores to ensure we cleanup between jobs
97 cat <<END_OF_DATA >tmp/bconcmds
99 restore where=${cwd}/tmp/bacula-restores select all storage=File done
102 restore where=${cwd}/tmp/bacula-restores select all storage=File done
106 restore where=${cwd}/tmp/bacula-restores select storage=File
118 check_for_zombie_jobs storage=File