3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory using the compressed option
9 # then restore a few selected files.
11 TestName="restore2-by-file-test"
12 JobName=restore2byfile
16 echo "${cwd}/build" >${cwd}/tmp/file-list
17 sed s%\^%${cwd}% ${cwd}/scripts/flist | sort | uniq >${cwd}/tmp/restore2-list
19 change_jobname CompressedTest $JobName
22 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
25 @$out ${cwd}/tmp/log1.out
26 label storage=File volume=TestVolume001
33 @$out ${cwd}/tmp/log2.out
34 restore where=${cwd}/tmp/bacula-restores storage=File file=<${cwd}/tmp/restore2-list
42 check_for_zombie_jobs storage=File
47 for i in `cat ${cwd}/tmp/restore2-list`; do
48 diff $i ${cwd}/tmp/bacula-restores$i