does include not outomaticaly exclude not matching files ?
Wayne Davison
wayned at samba.org
Wed Mar 15 17:04:12 GMT 2006
On Wed, Mar 15, 2006 at 09:21:16AM +0100, Liesinger Horst wrote:
> Does option --include not outomaticaly exclude not matching files ?
No, it does not. All files are included by default, so if you don't
exclude anything, no changes will be made to rsync's actions. Adding an
--exclude='*' option to the end is common, but given that you're
expecting subdirectories to be entered to get to the files, you'll also
need to add --include='*/' before the exclude so that subdirectories are
included too (see the man page for full details of why this is the
case).
See also the --prune-empty-dirs option in 2.6.7 if you end up with
unwanted empty directories on the receiving side.
..wayne..
More information about the rsync
mailing list