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