rsync - how to exclude all and allow only some files/dirs

Dave Dykstra dwd at bell-labs.com
Mon Jul 22 11:12:01 EST 2002


On Mon, Jul 15, 2002 at 11:21:57AM +0200, Zdenek Pizl wrote:
> Hallo,
> 
>  i searched archive of list, google.com and found nothing suitable :(
> 
> My problem  is : i would like to rsync only directory /lib/modules/2.4.18-5 
> and nothing else. As a second condition i'd like to use rsync server at 
> source side and suck files to the destination. The server module, let's name 
> it [test], have "exclude from =/etc/exclude" and "include from =/etc/include" 
> directives.
> 
> exclude :
> - /.*
> - /*/

Exclude/includes are processed in order, the above two patterns exclude
everything.

...
> - BUT I can't managed it to success. Nothing is transfred :( Where am i doing 
> a mistake ??

- Dave Dykstra




More information about the rsync mailing list