allow for exclude only configurations to rdiff-backup handler: Closes Trac#21

This commit is contained in:
Micah Anderson 2007-11-24 23:44:07 +00:00
parent ca62d94c56
commit 268494b0c8
2 changed files with 2 additions and 2 deletions

View File

@ -54,6 +54,7 @@ version 0.9.5 -- unreleased
. Add configuration option to allow you to disable the version check
as in some instances this may be an ok scenario (Closes: #424632)
. Added local destination support to helper (Closes: Trac#4)
. Allow exclude-only configurations (Closes: Trac#21)
rub/rsync
. Fixed typo in rub handler that caused it to not work
. Changed to use lib/vserver code

View File

@ -137,7 +137,6 @@ if [ $ignore_version != "yes" ]; then
fi
# source specific checks
[ "$include" != "" -o "$vsinclude" != "" ] || fatal "No source includes specified"
case $sourcetype in
remote ) execstr_sourcepart="$sourceuser@$sourcehost::/" ;;
local ) execstr_sourcepart="/" ;;
@ -233,7 +232,7 @@ fi
set +o noglob
# exclude everything else
execstr="${execstr}--exclude '/*' "
[ "$include" != "" -o "$vsinclude" != "" ] && execstr="${execstr}--exclude '/*' "
# include client-part and server-part
execstr="${execstr}$execstr_sourcepart $execstr_destpart"