Sunday, October 31, 2021

Re: openrsync --exclude only works locally

On Oct 29 07:52:05, nathanael@dalliard.ch wrote:
> hello everyone
>
> wasn't sure this is intended behaviour of openrsync or "good enough"
> for a bugreport to bugs@openbsd.org, thats why i first wanted to
> mention it here
>
> i am running -current and 'openrsync -r --exclude file' seems to
> work for me running it locally. but as soon as i try it over ssh
> it doesn't exclude anything and syncs the whole directory. i tried
> the same command with rsync and it works without a problem over ssh

Quoting directly from my daily.local,
this syncs everything in /backup except the *.media.* files:

/usr/bin/openrsync -av --del --exclude '*.media.*' /backup/ remote:/backup/

Can you please post the output of that, including the -v ?
What exactly is your excluded pattern? (Surely not 'file'.)

Jan

> (using '--exclude-from=file' doesn't change the behaviour)
>
> on another note related to openrsync: the manpage doesn't mention
> how 'pattern' should look like in '--exclude pattern' or '--include
> pattern'. wouldn't that be something that should be in the manpage?
>
> regards
> nathanael
>
>

No comments:

Post a Comment