]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/data-encrypt-test
ebl fix more pool problem
[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
11 scripts/cleanup
12 scripts/copy-crypto-confs
13 echo "${cwd}/build" >${cwd}/tmp/file-list
14
15 change_jobname NightlySave $JobName
16 start_test
17
18 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
19 @$out /dev/null
20 messages
21 @$out ${cwd}/tmp/log1.out
22 label storage=File volume=TestVolume001 pool=Default
23 @#setdebug level=10 fd
24 run job=$JobName yes
25 wait
26 messages
27 @# 
28 @# now do a restore
29 @#
30 @$out ${cwd}/tmp/log2.out
31 @#setdebug level=10 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 du -s build
49 du -s ${cwd}/tmp/bacula-restores/
50
51 check_two_logs
52 check_restore_diff
53 end_test