3 # Run a simple backup (with encryption) of the Bacula build directory
4 # then verify the signatures.
7 if test "$debug" -eq 1 ; then
14 scripts/copy-crypto-confs
16 echo "${cwd}/build" >/tmp/file-list
20 echo " === Starting Filed Encryption Test at `date +%R:%S` ==="
21 echo " === Starting Filed Encryption Test at `date +%R:%S` ===" >>working/log
24 cat <<END_OF_DATA >tmp/bconcmds
28 setdebug level=1 storage=File sd
29 label storage=File volume=TestVolume001
30 run job=NightlySave yes
37 restore where=${cwd}/tmp/bacula-restores storage=File
48 if test "$debug" -eq 1 ; then
50 cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf
52 bin/bacula start 2>&1 >/dev/null
53 cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null
57 scripts/check_for_zombie_jobs storage=File
58 bin/bacula stop 2>&1 >/dev/null
59 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
61 grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
62 if [ $? != 0 -o $bstat != 0 ] ; then
65 echo " !!!!! Filed Encryption Verification failed!!! !!!!! "
66 echo " !!!!! Filed Encryption Verification failed!!! !!!!! " >>test.out
67 if [ $bstat != 0 ] ; then
68 echo " !!!!! Bad Job termination status !!!!! "
69 echo " !!!!! Bad Job termination status !!!!! " >>test.out
71 echo " !!!!! Restored files differ !!!!! "
72 echo " !!!!! Restored files differ !!!!! " >>test.out
76 echo " ===== Filed Encryption Verification Test OK `date +%R:%S` ===== "
77 echo " ===== Filed Encryption Verification Test OK `date +%R:%S` ===== " >>test.out