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" >${cwd}/tmp/file-list
15 change_jobname CompressedTest $JobName
18 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
20 estimate job=$JobName listing
24 @$out ${cwd}/tmp/log1.out
25 label storage=File volume=TestVolume001
33 check_for_zombie_jobs storage=File
34 # make some files for the incremental to pick up
35 touch ${cwd}/build/src/dird/*.c ${cwd}/build/src/dird/*.o
36 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
41 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
44 @$out ${cwd}/tmp/log1.out
52 check_for_zombie_jobs storage=File
54 touch ${cwd}/build/src/dird/*.c
55 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
59 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
62 @$out ${cwd}/tmp/log1.out
70 check_for_zombie_jobs storage=File
72 # make some files for the incremental to pick up
73 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
77 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
80 @$out ${cwd}/tmp/log1.out
88 check_for_zombie_jobs storage=File
91 # now do several restores to ensure we cleanup between jobs
93 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
95 restore where=${cwd}/tmp/bacula-restores select all storage=File done
98 restore where=${cwd}/tmp/bacula-restores select all storage=File done
101 @$out ${cwd}/tmp/log2.out
102 restore where=${cwd}/tmp/bacula-restores select storage=File
113 check_for_zombie_jobs storage=File