]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/compressed-test
Updates
[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/cleanup
12 scripts/copy-test-confs
13 echo "${cwd}/build" >/tmp/file-list
14
15 change_jobname CompressedTest $JobName
16 start_test
17       
18 cat <<END_OF_DATA >tmp/bconcmds
19 @output
20 messages
21 @$out tmp/log1.out
22 status all
23 status all
24 messages
25 label storage=File volume=TestVolume001
26 run job=$JobName storage=File yes
27 wait
28 messages
29 @# 
30 @# now do a restore
31 @#
32 @$out tmp/log2.out
33 restore where=${cwd}/tmp/bacula-restores select storage=File
34 unmark *
35 mark *
36 done
37 yes
38 wait
39 messages
40 @output
41 quit
42 END_OF_DATA
43
44 run_bacula
45 check_for_zombie_jobs storage=File
46 stop_bacula
47
48 check_two_logs
49 check_restore_diff
50 end_test