From ec10066ab23f23841f980f085b5a3983ce74378f Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 9 Sep 2009 09:37:42 +0200 Subject: [PATCH] Add a regress script for Exclude Dir Containing option --- regress/tests/exclude-dir-test | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 regress/tests/exclude-dir-test diff --git a/regress/tests/exclude-dir-test b/regress/tests/exclude-dir-test new file mode 100755 index 0000000000..b4ae49c4b5 --- /dev/null +++ b/regress/tests/exclude-dir-test @@ -0,0 +1,44 @@ +#!/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 + +cat >tmp/bconcmds <