]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/compress-encrypt-test
Updates
[bacula/bacula] / regress / tests / compress-encrypt-test
1 #!/bin/sh
2 #
3 # Run a simple backup with encryption and compression of the Bacula build directory
4 #   then verify the signatures.
5 #
6 TestName="compressed-encrypt-test"
7 JobName=CompressedTest
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 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=10 fd
23 run job=$JobName yes
24 wait
25 messages
26 list volumes
27 @# 
28 @# now do a restore
29 @#
30 @$out tmp/log2.out
31 @# setdebug level=0 fd
32 restore where=${cwd}/tmp/bacula-restores storage=File
33 5
34 mark *
35 done
36 yes
37 wait
38 messages
39 @$out
40 quit
41 END_OF_DATA
42
43 run_bacula
44 sleep 2
45 check_for_zombie_jobs storage=File 
46 stop_bacula
47
48 check_two_logs
49 check_restore_diff
50 end_test