aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-11-24 23:44:07 +0000
committerMicah Anderson <micah@riseup.net>2007-11-24 23:44:07 +0000
commit268494b0c8ddf8df68db8acb77e01be82a0591ba (patch)
tree58ff2746e84e3a25061591e05ccb0c324e330f28
parentca62d94c56df7ee24a46c0de657930b48a04711d (diff)
downloadbackupninja-268494b0c8ddf8df68db8acb77e01be82a0591ba.tar.gz
backupninja-268494b0c8ddf8df68db8acb77e01be82a0591ba.tar.bz2
allow for exclude only configurations to rdiff-backup handler: Closes Trac#21
-rw-r--r--ChangeLog1
-rw-r--r--handlers/rdiff.in3
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 34589c2..e3ca05a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/handlers/rdiff.in b/handlers/rdiff.in
index aa02a55..62c5a28 100644
--- a/handlers/rdiff.in
+++ b/handlers/rdiff.in
@@ -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"