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.. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
