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