]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/exclude-dir-test
b4ae49c4b5dbb4c9d3acd0568138fa44078e41bd
[bacula/bacula] / regress / tests / exclude-dir-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory using the compressed option
4 #   then backup a second time and finally restore it
5 #
6 TestName="exclude-dir-test"
7 JobName=exclude-dir
8 . scripts/functions
9
10 cwd=`pwd`
11 scripts/cleanup
12 scripts/copy-test-confs
13 echo "${cwd}/build" >${cwd}/tmp/file-list
14 sed 's/Include {/Include { Exclude Dir Containing = ".nobkp"/' $conf/bacula-dir.conf > $tmp/1
15 cp -f $tmp/1 $conf/bacula-dir.conf
16 change_jobname CompressedTest $JobName
17 start_test
18
19 cat >tmp/bconcmds <<END_OF_DATA
20 @$out /dev/null
21 messages
22 @$out $tmp/log3.out
23 estimate job=$JobName listing
24 messages
25 @$out $tmp/log1.out
26 label storage=File volume=TestVolume001
27 run job=$JobName yes
28 wait
29 messages
30 @$out $tmp/log2.out
31 restore where=${cwd}/tmp/bacula-restores select all storage=File done
32 yes
33 wait
34 messages
35 quit
36 END_OF_DATA
37
38 run_bacula
39 check_for_zombie_jobs storage=File 
40 stop_bacula
41
42 check_two_logs
43 check_restore_diff
44 end_test