diff options
author | Wayne Davison <wayned@samba.org> | 2005-02-03 03:45:24 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2005-02-03 03:45:24 +0000 |
commit | 346402ddbf731b87ec1c068f771c0838f5e22876 (patch) | |
tree | ba33ca50fb5b2d4c6b9b94ddebfdf186db86d014 /testsuite/exclude.test | |
parent | 44d60d5f83da9595a93a6acdb3fd770d249381a4 (diff) | |
download | rsync-346402ddbf731b87ec1c068f771c0838f5e22876.tar.gz |
Use the new negated exclude to filter out all non-dirs in a few
of the rsync commands.
Diffstat (limited to 'testsuite/exclude.test')
-rw-r--r-- | testsuite/exclude.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/exclude.test b/testsuite/exclude.test index d314941d..56b612a4 100644 --- a/testsuite/exclude.test +++ b/testsuite/exclude.test @@ -129,7 +129,7 @@ rm "$chkdir"/bar/down/to/foo/*.junk rm "$chkdir"/bar/down/to/home-cvs-exclude rm "$chkdir"/mid/one-in-one-out -$RSYNC -av --existing --include='*/' --exclude='*' "$fromdir/" "$chkdir/" +$RSYNC -av --existing --filter='-! */' "$fromdir/" "$chkdir/" # Now, test if rsync excludes the same files, this time with --cvs-exclude # and --delete-excluded. @@ -145,12 +145,12 @@ cp -p "$fromdir"/bar/down/to/foo/*.junk "$chkdir"/bar/down/to/foo cp -p "$fromdir"/bar/down/to/foo/to "$chkdir"/bar/down/to/foo $RSYNC -av --existing --delete-excluded \ - --include='*/' --include='.excl*' --exclude='*' "$fromdir/" "$todir/" + --include='.excl*' --filter='-! */' "$fromdir/" "$todir/" echo retained >"$todir"/bar/down/to/bar/baz/nodel.deep cp -p "$todir"/bar/down/to/bar/baz/nodel.deep "$chkdir"/bar/down/to/bar/baz -$RSYNC -av --existing --include='*/' --exclude='*' "$fromdir/" "$chkdir/" +$RSYNC -av --existing --filter='-! */' "$fromdir/" "$chkdir/" # Now, test if rsync excludes the same files, this time with a merge-exclude # file. @@ -169,7 +169,7 @@ rm "$chkdir"/bar/down/to/bar/.excl2 rm "$chkdir"/mid/.excl rm "$chkdir"/bar/down/to/bar/baz/nodel.deep -$RSYNC -av --existing --include='*/' --exclude='*' "$fromdir/" "$chkdir/" +$RSYNC -av --existing --filter='-! */' "$fromdir/" "$chkdir/" # Finally, try the prior command with --delete-before and --delete-excluded. |