Commit 50cf2567 authored by Wayne Davison's avatar Wayne Davison

Added a test of a simple exclude when --relative is enabled.

parent b3168628
......@@ -203,5 +203,12 @@ $RSYNC -av --delete-excluded --exclude='*' "$fromdir/" "$todir/"
checkit "$RSYNC -avv -f dir-merge,-_.excl \
\"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
$RSYNC -avR "$fromdir/foo" "$chkdir/"
rm -rf "$chkdir$fromdir/foo/down"
$RSYNC -avR --existing --filter='-! */' "$fromdir/foo" "$chkdir/"
checkit "$RSYNC -avvR --exclude=\"$fromdir/foo/down\" \
\"$fromdir/foo\" \"$todir\"" "$chkdir$fromdir/foo" "$todir$fromdir/foo"
# The script would have aborted on error, so getting here means we've won.
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment