3 # Run a simple backup of the Bacula build directory using the compressed option
4 # then restore a few selected files.
6 TestName="restore2-by-file-test"
11 echo "${cwd}/build" >${cwd}/tmp/file-list
12 sed s%\^%${cwd}% ${cwd}/scripts/flist | sort | uniq >${cwd}/tmp/restore2-list
14 change_jobname CompressedTest $JobName
17 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
20 @$out ${cwd}/tmp/log1.out
21 label storage=File volume=TestVolume001
28 @$out ${cwd}/tmp/log2.out
29 restore where=${cwd}/tmp/bacula-restores storage=File file=<${cwd}/tmp/restore2-list
38 check_for_zombie_jobs storage=File
43 for i in `cat ${cwd}/tmp/restore2-list`; do
44 diff $i ${cwd}/tmp/bacula-restores$i