Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44d60d5
)
Use the new negated exclude to filter out all non-dirs in a few
author
Wayne Davison
<wayned@samba.org>
Thu, 3 Feb 2005 03:45:24 +0000
(
03:45
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 3 Feb 2005 03:45:24 +0000
(
03:45
+0000)
of the rsync commands.
testsuite/exclude.test
patch
|
blob
|
blame
|
history
diff --git
a/testsuite/exclude.test
b/testsuite/exclude.test
index
d314941
..
56b612a
100644
(file)
--- 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
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.
# 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 \
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
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.
# 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
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.
# Finally, try the prior command with --delete-before and --delete-excluded.