Dynamically determined include/exclude list.

2005-11-10 Thread Dave Mielke
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? If it can't be done today, is it the sort of feature which would be
considered for future development?

-- 
Dave Mielke   | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: [EMAIL PROTECTED] | Canada  K2A 1H7   | if you're concerned about Hell.
http://FamilyRadio.com/   | http://Mielke.cc/bible/
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Dynamically determined include/exclude list.

2005-11-10 Thread Wayne Davison
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.

..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


Re: Dynamically determined include/exclude list.

2005-11-10 Thread Dave Mielke
[quoted lines by Wayne Davison on 2005/11/10 at 12:09 -0800]

In the CVS version of rsync, you could specify a pre-xfer exec command
that could run anything you like (such as find).  

Does this then write the output of, say, find to a file which is picked up
later (during the transfer) by something like include from?

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:

What I'm looking for is the ability to only transfer files which meet a certain
set of criteria, e.g. only files which are owned by a certain user.

-- 
Dave Mielke   | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: [EMAIL PROTECTED] | Canada  K2A 1H7   | if you're concerned about Hell.
http://FamilyRadio.com/   | http://Mielke.cc/bible/
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html