3 # Run a simple backup of untitled15.jpg that fails to
4 # restore properly in bug #763
6 TestName="encrypt-bug-test"
12 scripts/copy-crypto-confs
13 echo "${cwd}/encrypt-bug.jpg" >/tmp/file-list
14 echo "${cwd}/encrypt-bug.jpg" >${cwd}/tmp/restore-list
15 echo "${cwd}/encrypt-bug.txt" >>/tmp/file-list
16 echo "${cwd}/encrypt-bug.txt" >>${cwd}/tmp/restore-list
17 files="encrypt-bug.jpg encrypt-bug.txt"
18 mkdir -p ${cwd}/tmp/build
20 cp -p ${cwd}/encrypt-bug.* ${cwd}/tmp/build
23 change_jobname NightlySave $JobName
26 cat <<END_OF_DATA >tmp/bconcmds
30 label storage=File volume=TestVolume001
40 restore where=${cwd}/tmp/bacula-restores storage=File
53 check_for_zombie_jobs storage=File
57 du -s tmp/bacula-restores/
61 diff ${cwd}/tmp/build ${cwd}/tmp/bacula-restores/${cwd} 2>&1 >/dev/null