]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/data-encrypt-test
948d9d5bf4c5c4f6aebd96c5537b885af082c9c1
[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" >/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 @#setdebug level=100 dir
22 label storage=File volume=TestVolume001
23 run job=$JobName yes
24 wait
25 messages
26 @# 
27 @# now do a restore
28 @#
29 @$out tmp/log2.out
30 restore where=${cwd}/tmp/bacula-restores storage=File
31 5
32 mark *
33 done
34 yes
35 wait
36 messages
37 @$out
38 quit
39 END_OF_DATA
40
41 run_bacula
42 sleep 2
43 check_for_zombie_jobs storage=File 
44 stop_bacula
45
46 check_two_logs
47 check_restore_diff
48 end_test