]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/filed-crypto-test
Update 2drive-incremental-2tape script
[bacula/bacula] / regress / tests / filed-crypto-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="filed-crypto-test"
7 JobName=Crypto
8 . scripts/functions
9 set_debug 0
10
11 scripts/cleanup
12 scripts/copy-crypto-confs
13 echo "${cwd}/build" >/tmp/file-list
14
15 change_jobname NightlySave $JobName
16 start_test
17
18 cat <<END_OF_DATA >tmp/bconcmds
19 @$out /dev/null
20 messages
21 @$out tmp/log1.out
22 setdebug level=1 storage=File sd
23 label storage=File volume=TestVolume001
24 run job=$JobName yes
25 wait
26 messages
27 @# 
28 @# now do a restore
29 @#
30 @$out tmp/log2.out
31 restore where=${cwd}/tmp/bacula-restores storage=File
32 5
33 mark *
34
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