]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/data-encrypt-test
regress: tweak the message in the update_win32()
[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
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 quit
40 END_OF_DATA
41
42 run_bacula
43 sleep 2
44 check_for_zombie_jobs storage=File 
45 stop_bacula
46
47 du -s build
48 du -s ${cwd}/tmp/bacula-restores/
49
50 check_two_logs
51 check_restore_diff
52 end_test