#!/bin/sh # # Run a simple backup of the Bacula build directory using the compressed option # then backup a second time and finally restore it # TestName="exclude-dir-test" JobName=exclude-dir . scripts/functions cwd=`pwd` scripts/cleanup scripts/copy-test-confs echo "${cwd}/build" >${cwd}/tmp/file-list sed 's/Include {/Include { Exclude Dir Containing = ".nobkp"/' $conf/bacula-dir.conf > $tmp/1 cp -f $tmp/1 $conf/bacula-dir.conf change_jobname CompressedTest $JobName start_test mkdir ${cwd}/build/src/testdir touch ${cwd}/build/src/testdir/.nobkp cp ${cwd}/build/src/dird/*.c ${cwd}/build/src/testdir cat >tmp/bconcmds < /dev/null if [ $? = 0 ]; then print_debug "ERROR: Should not see testdir in estimate output" bstat=2 fi end_test