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
34 @# now do a verify volume
36 @$out ${cwd}/tmp/original
45 if test "$debug" -eq 1 ; then
47 cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf
49 bin/bacula start 2>&1 >/dev/null
50 cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null
54 scripts/check_for_zombie_jobs storage=File
55 bin/bacula stop 2>&1 >/dev/null
56 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
58 grep "^ Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
59 if [ $? != 0 -o $bstat != 0 ] ; then
62 echo " !!!!! Filed Encryption Verification failed!!! !!!!! "
63 echo " !!!!! Filed Encryption Verification failed!!! !!!!! " >>test.out
64 if [ $bstat != 0 ] ; then
65 echo " !!!!! Bad Job termination status !!!!! "
66 echo " !!!!! Bad Job termination status !!!!! " >>test.out
68 echo " !!!!! Restored files differ !!!!! "
69 echo " !!!!! Restored files differ !!!!! " >>test.out
73 echo " ===== Filed Encryption Verification Test OK ===== "
74 echo " ===== Filed Encryption Verification Test OK ===== " >>test.out