X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Frdiff.in;h=62c5a2803a10eab6a0b2fe96e6220aa6c8188257;hb=c264d442ca0b235904cfea8434ebe57f91cb0bc9;hp=aa02a5541944cf4f9c2f3c6f6f585590fe227451;hpb=02a7436b7c606efd82e215ffc238aac3d5e21f7f;p=matthijs%2Fupstream%2Fbackupninja.git 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"