3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of untitled15.jpg that fails to
9 # restore properly in bug #763
11 TestName="encrypt-bug-test"
16 scripts/copy-crypto-confs
17 echo "${cwd}/encrypt-bug.jpg" >${cwd}/tmp/file-list
18 echo "${cwd}/encrypt-bug.jpg" >${cwd}/tmp/restore-list
19 echo "${cwd}/encrypt-bug.txt" >>${cwd}/tmp/file-list
20 echo "${cwd}/encrypt-bug.txt" >>${cwd}/tmp/restore-list
21 echo "${cwd}/encrypt-bug2.txt" >>${cwd}/tmp/file-list
22 echo "${cwd}/encrypt-bug2.txt" >>${cwd}/tmp/restore-list
23 files="encrypt-bug.jpg encrypt-bug.txt encrypt-bug2.txt"
24 mkdir -p ${cwd}/tmp/build
26 cp -p ${cwd}/encrypt-bug*.* ${cwd}/tmp/build
29 change_jobname NightlySave $JobName
32 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
35 @$out ${cwd}/tmp/log1.out
36 label storage=File volume=TestVolume001
44 @$out ${cwd}/tmp/log2.out
46 restore where=${cwd}/tmp/bacula-restores storage=File
58 check_for_zombie_jobs storage=File
62 #du -s ${cwd}/tmp/bacula-restores/
65 diff ${cwd}/tmp/build ${cwd}/tmp/bacula-restores/${cwd} 2>&1 >/dev/null