]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/sparse-lzo-test
Backport from Bacula Enterprise
[bacula/bacula] / regress / tests / sparse-lzo-test
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 #
8 # Run a simple backup of the Bacula build directory using the Sparse option
9 #   then restore it.
10 #
11 TestName="sparse-lzo-test"
12 JobName=Sparse-lzo
13 . scripts/functions
14
15 cwd=`pwd`
16 scripts/cleanup
17 scripts/copy-test-confs
18 echo "${cwd}/build" >${cwd}/tmp/file-list
19
20 start_test
21
22 cat >${cwd}/tmp/bconcmds <<END_OF_DATA
23 @output /dev/null
24 messages
25 @$out ${cwd}/tmp/log1.out
26 label storage=File volume=TestVolume001
27 run job=SparseLZOTest yes
28 wait
29 messages
30 @# 
31 @# now do a restore
32 @#
33 @$out ${cwd}/tmp/log2.out   
34 restore where=${cwd}/tmp/bacula-restores select all storage=File done
35 yes
36 wait
37 messages
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