Re: "(Server) Protocol versions: remote=31, negotiated=31". How to you rsync just certain file extensions? . . .
On 3/11/23, Greg Wooledge <greg@wooledge.org> wrote:
...
> Hmm, that didn't work either. Now it's time to read the documentation.
> (read, read, read)
> OK, here we go:
>
> unicorn:/tmp/src$ rsync -a --include="*/" --include="*.foo"
> --include="*.bar" --exclude="*" . /tmp/dest/
> unicorn:/tmp/src$ find /tmp/dest
> /tmp/dest
> /tmp/dest/a
> /tmp/dest/a/b2
> /tmp/dest/a/b2/good.bar
> /tmp/dest/a/b
> /tmp/dest/a/b/c
> /tmp/dest/a/b/c/good.foo
>
> There. That's the desired result, if my interpretation of the Subject:
> header is correct.
> In order to understand it, you'll have to read the section titled
> "INCLUDE/EXCLUDE PATTERN RULES" in the man page. I won't repeat it
> all here.
> If there are additional questions, please try to ask them clearly.
that did it for me. Thank you.
I had all that script that I had been using just fine, but at some
point it started to "misbehave"
I use all that "obfuscation" because I like to keep logs of all I do
lbrtchx
Reply to: