Re: exclude include path problems
ichiwawa I have been very much over thinking the problem, time for holiday Thank You, this is fixing the dilemma On Mon, Feb 7, 2022 at 7:37 PM Paul Slootman via rsync < rsync@lists.samba.org> wrote: > 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 > > -- > Please use reply-all for most replies to avoid omitting the mailing list. > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > -- Please use reply-all for most replies to avoid omitting the mailing list. 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: exclude include path problems
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 -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
exclude include path problems
Halo, for few hours now I have been racking my brain and going even more grey if that is possible. for some time my rsync script works, but now I see it does not, after changes mirror operator made, as a result I need some help. 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 method I've tried for hours, just about to give up with conclusion it can not be done.with rsync but before I delete now outdated repository I thought I would try one last ask here? ed -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html