include/exclude
Julian Pace Ross
linux at prisma.com.mt
Tue Jan 16 15:13:43 GMT 2007
OK thanks!
----- Original Message -----
From: "Christophe LYON" <christophe.lyon at st.com>
To: "Julian Pace Ross" <linux at prisma.com.mt>; <rsync at lists.samba.org>
Sent: Tuesday, January 16, 2007 2:54 PM
Subject: Re: include/exclude
> 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
>>
>
>
More information about the rsync
mailing list