include/exclude client/server precedence
wayned at samba.org
Fri Mar 11 16:19:01 GMT 2005
On Fri, Mar 11, 2005 at 11:37:07AM -0300, C. P. wrote:
> include = outlook.pst
> exclude = *.pst *.exe *.com *.mp3 etc...
> but as i have experienced, these rules only apply if are repeated as client
They apply to the server, but not in the same way that client options do
(i.e. they have no effect whatsoever on the client, just the server).
This is mentioned in the rsyncd.conf (especiallly in a more modern
release). The purpose of these options for the daemon is to completely
hide files so that they can't be downloaded from the server, and to
prevent those files from uploaded to the server (in a modern rsync).
For 2.6.4, you can instead create a server-file named .rsync-filter in
the root dir of the module. Then, the client can specify -F and these
filter rules will be read-in during the processing. When pulling, if
--delete-after is specified, the most recent version of the rules will
be applied to protect files from deletion (or the previous version of
the file will apply if another form of delete is used). When pushing,
the client needs to have an up-to-date version of the file to prevent
the transfer of those files to the server.
More information about the rsync