]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/data-encrypt-test
Update
[bacula/bacula] / regress / tests / data-encrypt-test
1 #!/bin/sh
2 #
3 # Run a simple backup (with encryption) of the Bacula build directory
4 #   then verify the signatures.
5 #
6 TestName="data-encrypt-test"
7 JobName=Crypto
8 . scripts/functions
9 set_debug 1
10
11 scripts/cleanup
12 scripts/copy-crypto-confs
13 echo "${cwd}/build/po/LINGUAS" >/tmp/file-list
14
15 start_test
16
17 cat <<END_OF_DATA >tmp/bconcmds
18 @$out /dev/null
19 messages
20 @$out tmp/log1.out
21 label storage=File volume=TestVolume001
22 setdebug level=300 fd
23 run job=$JobName yes
24 wait
25 messages
26 @# 
27 @# now do a restore
28 @#
29 @$out tmp/log2.out
30 setdebug level=0 fd
31 restore where=${cwd}/tmp/bacula-restores storage=File
32 5
33 mark *
34 done
35 yes
36 wait
37 messages
38 @$out
39 quit
40 END_OF_DATA
41
42 run_bacula
43 sleep 2
44 check_for_zombie_jobs storage=File 
45 stop_bacula
46
47 check_two_logs
48 check_restore_diff
49 end_test