3 # Run a simple backup of the Bacula build directory using the compressed option
4 # then backup a second time and finally restore it
6 TestName="exclude-dir-test"
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
19 cat >tmp/bconcmds <<END_OF_DATA
23 estimate job=$JobName listing
26 label storage=File volume=TestVolume001
31 restore where=${cwd}/tmp/bacula-restores select all storage=File done
39 check_for_zombie_jobs storage=File