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"
12 scripts/copy-test-confs
14 echo "${cwd}/build" >/tmp/file-list
15 sed s%\^%${cwd}% ${cwd}/scripts/flist >${cwd}/tmp/restore2-list
17 change_jobname CompressedTest $JobName
20 cat <<END_OF_DATA >tmp/bconcmds
24 label storage=File volume=TestVolume001
32 restore where=${cwd}/tmp/bacula-restores storage=File file=<${cwd}/tmp/restore2-list
41 check_for_zombie_jobs storage=File
46 for i in `cat ${cwd}/tmp/restore2-list`; do
47 diff $i ${cwd}/tmp/bacula-restores$i