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