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"
13 scripts/copy-test-confs
15 echo "${cwd}/build" >/tmp/file-list
19 cat <<END_OF_DATA >tmp/bconcmds
21 estimate job=CompressedTest listing
22 estimate job=CompressedTest listing
23 estimate job=CompressedTest listing
26 label storage=File volume=TestVolume001
27 run job=CompressedTest yes
34 check_for_zombie_jobs storage=File
36 # make some files for the incremental to pick up
37 touch ${cwd}/build/src/dird/*.c ${cwd}/build/src/dird/*.o
38 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
43 cat <<END_OF_DATA >tmp/bconcmds
47 run job=CompressedTest
55 check_for_zombie_jobs storage=File
58 touch ${cwd}/build/src/dird/*.c
59 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
63 cat <<END_OF_DATA >tmp/bconcmds
67 label storage=File volume=TestVolume001
68 run job=CompressedTest yes
75 check_for_zombie_jobs storage=File
78 # make some files for the incremental to pick up
79 touch ${cwd}/build/src/lib/*.c ${cwd}/build/src/lib/*.o
83 cat <<END_OF_DATA >tmp/bconcmds
87 label storage=File volume=TestVolume001
88 run job=CompressedTest yes
95 check_for_zombie_jobs storage=File
99 # now do several restores to ensure we cleanup between jobs
101 cat <<END_OF_DATA >tmp/bconcmds
103 restore where=${cwd}/tmp/bacula-restores select all storage=File done
106 restore where=${cwd}/tmp/bacula-restores select all storage=File done
110 restore where=${cwd}/tmp/bacula-restores select storage=File
122 check_for_zombie_jobs storage=File