You can still use --filter: --filter=": my-rsync-filter"
will include the file my-rsync-filter in the list of rules (and recursively at each directory level).

This is very powerful and allows you to modify the filters without modifying the script which calls rsync.

Christophe.


On 16.01.2007 14:28, Julian Pace Ross wrote:
Hi all,

I've read the man page but still seem to be a bit confused:

Is it possible to specify include/exclude rules to transfer files, for example of type *.c and *abc, and exclude everything else?

I am trying to avoid using --filter, since the list of patterns can be quite long and can change often, and since there is no --filter-from=FILE, my aim is to use the --include-from= and --exclude-from= files.

I tried putting *.c and *.abc in the include file, and * in the exclude file, but nothing gets transferred.
Tried a couple of other configurations but still nothing.

Any help?

Regards
Julian


--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to