better to exclude at daemon/server or client

Wayne Davison wayned at samba.org
Mon May 10 17:44:35 GMT 2004


On Mon, May 10, 2004 at 12:33:15PM -0400, Sean M. Kaiser wrote:
> Is there a difference if an --exclude-from (or just plain --exclude) is
> specified on the daemon or the client?

There are a few differences.  When excludes are specified on the server,
they are mandatory restrictions that cannot be overridden.  The rules
are also invisible to the client.  Thus, you can never fetch a system-
excluded file.  Also, the --delete option will not protect any matching
system-excluded files on the client because those exclude rules are not
known to the client.  The efficiency of both methods is identical for
the most part -- with system excludes there's just a few less bytes sent
over the wire and the client doesn't do any exclude matching, so it
might use a tiny bit less CPU (both of which go away if you need client-
side exclusions for --delete).

..wayne..


More information about the rsync mailing list