Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clarify how the fitler rule "-/" works.
[rsync/rsync.git]
/
rsync.yo
diff --git
a/rsync.yo
b/rsync.yo
index
5094c8a
..
ef221f1
100644
(file)
--- a/
rsync.yo
+++ b/
rsync.yo
@@
-733,7
+733,9
@@
also excluded from being deleted unless you use the bf(--delete-excluded)
option or mark the rules as only matching on the sending side (see the
include/exclude modifiers in the FILTER RULES section).
option or mark the rules as only matching on the sending side (see the
include/exclude modifiers in the FILTER RULES section).
-This option has no effect unless directory recursion is enabled.
+Prior to rsync 2.6.7, this option would have no effect unless bf(--recursive)
+was in effect. Beginning with 2.6.7, deletions will also occur when bf(--dirs)
+is specified, but only for directories whose contents are being copied.
This option can be dangerous if used incorrectly! It is a very good idea
to run first using the bf(--dry-run) option (bf(-n)) to see what files would be
This option can be dangerous if used incorrectly! It is a very good idea
to run first using the bf(--dry-run) option (bf(-n)) to see what files would be
@@
-1646,10
+1648,12
@@
itemize(
The following modifiers are accepted after a "+" or "-":
itemize(
The following modifiers are accepted after a "+" or "-":
itemize(
- it() A "/" specifies that the include/exclude
should be treated as an
- a
bsolute path, relative to the root of the filesys
tem. For example,
+ it() A "/" specifies that the include/exclude
rule should be matched
+ a
gainst the absolute pathname of the current i
tem. For example,
"-/ /etc/passwd" would exclude the passwd file any time the transfer
"-/ /etc/passwd" would exclude the passwd file any time the transfer
- was sending files from the "/etc" directory.
+ was sending files from the "/etc" directory, and "-/ subdir/foo"
+ would always exclude "foo" when it is in a dir named "subdir", even
+ if "foo" is at the root of the current transfer.
it() A "!" specifies that the include/exclude should take effect if
the pattern fails to match. For instance, "-! */" would exclude all
non-directories.
it() A "!" specifies that the include/exclude should take effect if
the pattern fails to match. For instance, "-! */" would exclude all
non-directories.