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"
14 scripts/copy-test-confs
15 echo "${cwd}/build" >/tmp/file-list
17 change_jobname CompressedTest $JobName
20 cat <<END_OF_DATA >tmp/bconcmds
22 estimate job=$JobName listing
23 estimate job=$JobName listing
24 estimate job=$JobName listing
27 label storage=File volume=TestVolume001
35 check_for_zombie_jobs storage=File
37 # make some files for the incremental to pick up
38 touch ${cwd}/build/src/dird/*.c ${cwd}/build/src/dird/*.o
39 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
44 cat <<END_OF_DATA >tmp/bconcmds
56 check_for_zombie_jobs storage=File
59 touch ${cwd}/build/src/dird/*.c
60 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
64 cat <<END_OF_DATA >tmp/bconcmds
68 label storage=File volume=TestVolume001
76 check_for_zombie_jobs storage=File
79 # make some files for the incremental to pick up
80 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
84 cat <<END_OF_DATA >tmp/bconcmds
88 label storage=File volume=TestVolume001
96 check_for_zombie_jobs storage=File
100 # now do several restores to ensure we cleanup between jobs
102 cat <<END_OF_DATA >tmp/bconcmds
104 restore where=${cwd}/tmp/bacula-restores select all storage=File done
107 restore where=${cwd}/tmp/bacula-restores select all storage=File done
111 restore where=${cwd}/tmp/bacula-restores select storage=File
123 check_for_zombie_jobs storage=File