]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/compressed-test
8f10d91599cc3e7268cfb38a7ef8bfed8e15ddce
[bacula/bacula] / regress / tests / compressed-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory using the compressed option
4 #   then restore it.
5 #
6 TestName="compressed-test"
7 JobName=compressed
8 . scripts/functions
9 set_debug 0
10
11 scripts/copy-test-confs
12 scripts/cleanup
13 echo "${cwd}/build" >/tmp/file-list
14
15 start_test
16       
17 cat <<END_OF_DATA >tmp/bconcmds
18 @output
19 messages
20 @$out tmp/log1.out
21 status all
22 status all
23 messages
24 label storage=File volume=TestVolume001
25 run job=CompressedTest storage=File yes
26 wait
27 messages
28 @# 
29 @# now do a restore
30 @#
31 @$out tmp/log2.out
32 restore where=${cwd}/tmp/bacula-restores select storage=File
33 unmark *
34 mark *
35 done
36 yes
37 wait
38 messages
39 @output
40 quit
41 END_OF_DATA
42
43 run_bacula
44 check_for_zombie_jobs storage=File
45 stop_bacula
46
47 check_two_logs
48 check_restore_diff
49 end_test
50