allow for exclude only configurations to rdiff-backup handler: Closes Trac#21
authormicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Sat, 24 Nov 2007 23:44:07 +0000 (23:44 +0000)
committermicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Sat, 24 Nov 2007 23:44:07 +0000 (23:44 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@510 758a04ac-41e6-0310-8a23-8373a73cc35d

ChangeLog
handlers/rdiff.in

index 34589c24b45cd8883bf51c0c66502ddc1d77dea2..e3ca05a408d3598e0d773c08918cfa71c36ca05c 100644 (file)
--- 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
index aa02a5541944cf4f9c2f3c6f6f585590fe227451..62c5a2803a10eab6a0b2fe96e6220aa6c8188257 100644 (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"