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 echo "${cwd}/encrypt-bug2.txt" >>/tmp/file-list
18 echo "${cwd}/encrypt-bug2.txt" >>${cwd}/tmp/restore-list
19 files="encrypt-bug.jpg encrypt-bug.txt encrypt-bug2.txt"
20 mkdir -p ${cwd}/tmp/build
22 cp -p ${cwd}/encrypt-bug*.* ${cwd}/tmp/build
25 change_jobname NightlySave $JobName
28 cat <<END_OF_DATA >tmp/bconcmds
32 label storage=File volume=TestVolume001
42 restore where=${cwd}/tmp/bacula-restores storage=File
55 check_for_zombie_jobs storage=File
59 du -s tmp/bacula-restores/
63 diff ${cwd}/tmp/build ${cwd}/tmp/bacula-restores/${cwd} 2>&1 >/dev/null