]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/data-encrypt-test
04064f6a95a00756d487b70626820f84b3b97126
[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 label storage=File volume=TestVolume001
22 run job=$JobName yes
23 wait
24 messages
25 @# 
26 @# now do a restore
27 @#
28 @$out tmp/log2.out
29 @#setdebug level=50 storage=File
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