Dynamically determined include/exclude list.

Wayne Davison wayned at samba.org
Thu Nov 10 20:09:11 GMT 2005

On Thu, Nov 10, 2005 at 02:37:55PM -0500, Dave Mielke wrote:
> Is there a way to define a module within rsyncd.conf such that its
> include/exclude list is dynamically determined by executing a host command,
> e.g. find?

In the CVS version of rsync, you could specify a "pre-xfer exec" command
that could run anything you like (such as find).  However, the only way
that could affect what gets included/excluded in the already-started
transfer would be for you to use per-directory filter files.  For
example, if you have this filter rule in your config file:
    filter = dir-merge .auto-filter

Rsync would look for filter rules in a file named .auto-filter in every
directory of the transfer and react accordingly.  See the manpage for
more details.


More information about the rsync mailing list