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
54 check_for_zombie_jobs storage=File
57 touch ${cwd}/build/src/dird/*.c
58 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
62 cat <<END_OF_DATA >tmp/bconcmds
66 label storage=File volume=TestVolume001
74 check_for_zombie_jobs storage=File
77 # make some files for the incremental to pick up
78 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
82 cat <<END_OF_DATA >tmp/bconcmds
86 label storage=File volume=TestVolume001
94 check_for_zombie_jobs storage=File
98 # now do several restores to ensure we cleanup between jobs
100 cat <<END_OF_DATA >tmp/bconcmds
102 restore where=${cwd}/tmp/bacula-restores select all storage=File done
105 restore where=${cwd}/tmp/bacula-restores select all storage=File done
109 restore where=${cwd}/tmp/bacula-restores select storage=File
121 check_for_zombie_jobs storage=File