3 # Run a simple backup of the Bacula build directory using the compressed option
7 TestName="restore-by-file-test"
12 scripts/copy-test-confs
13 echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
14 mkdir -p ${cwd}/tmp/build
15 cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
19 sed s%\^%${cwd}/tmp/build/% 1 | sort | uniq >restore-list
23 change_jobname CompressedTest $JobName
26 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
29 @$out ${cwd}/tmp/log1.out
30 label storage=File volume=TestVolume001
35 @# now run 10 restores
37 @$out ${cwd}/tmp/log2.out
38 restore where=${cwd}/tmp/bacula-restores storage=File
40 <${cwd}/tmp/restore-list
44 restore where=${cwd}/tmp/bacula-restores storage=File
46 <${cwd}/tmp/restore-list
50 restore where=${cwd}/tmp/bacula-restores storage=File
52 <${cwd}/tmp/restore-list
56 restore where=${cwd}/tmp/bacula-restores storage=File
58 <${cwd}/tmp/restore-list
62 restore where=${cwd}/tmp/bacula-restores storage=File
64 <${cwd}/tmp/restore-list
68 restore where=${cwd}/tmp/bacula-restores storage=File
70 <${cwd}/tmp/restore-list
74 restore where=${cwd}/tmp/bacula-restores storage=File
76 <${cwd}/tmp/restore-list
80 restore where=${cwd}/tmp/bacula-restores storage=File
82 <${cwd}/tmp/restore-list
86 restore where=${cwd}/tmp/bacula-restores storage=File
88 <${cwd}/tmp/restore-list
92 restore where=${cwd}/tmp/bacula-restores storage=File
94 <${cwd}/tmp/restore-list
98 restore where=${cwd}/tmp/bacula-restores storage=File
100 <${cwd}/tmp/restore-list
109 check_for_zombie_jobs storage=File
113 check_restore_tmp_build_diff