exclude include path problems
Paul Slootman
paul+rsync at wurtel.net
Mon Feb 7 09:35:23 UTC 2022
On Mon 07 Feb 2022, Edwardo Garcia via rsync wrote:
>
> Lets call module mirror
> this results in about 200 or more directories (projects), but I only want
> one of them, lets call it foo, the problem is foo/ has about 50
> directories, but the one and only one we want is bar, but bar also has
> dozens of directories - but we do want these ones.
>
> so we want server:mirrors/foo/bar/*
>
> How do we place our rsync command?
>
> we have tried all kinds of --include=foo/bar/ --exclude=*
> servername:mirrors/
> we tried an include exclude include exclude too, infact every conceivable
Why not just do:
rsync -a server:mirrors/foo/bar/ /local/path/to/foo/bar/
Paul
More information about the rsync
mailing list