include/exclude client/server precedence

Wayne Davison wayned at samba.org
Fri Mar 11 22:00:12 GMT 2005


On Fri, Mar 11, 2005 at 05:58:25PM -0300, C. P. wrote:
> include = outlook.pst,
> exclude = *.pif *.iso *.mov *.mp3 *.wav *.exe *.dll *.pst *.com *.bat *.mpg

As long as your server is 2.6.3 or newer, that will prevent any of those
file extensions from being uploaded to the server.  You'll see messages
like this when a client tries to send such a file:

skipping server-excluded file "foo.iso"

Your include line is wrong, though -- the trailing comma on the name
is a part of the filename (names are space separated).

Also, your example with +/- prefixes needed to have a single space in
between the +/- and the name (rsync avoids splitting at that infix
space).

..wayne..


More information about the rsync mailing list