Page 1 of 1

rsync advanced question

Posted: 2018/06/18 17:53:12
by Sven_VD
Dear,

On the remote end of an rsync session over ssh I could capture the output via SSH_ORIGINAL_COMMAND var

-server -vlogDtpXre.iLsfxC --delete --force --ignore-errors . /test

Now my question is

What are the option after the . : "iLsfxC" , I tested and they don't seem to be active so it aren't defaults. But what are they used for then.

THanks

Re: rsync advanced question

Posted: 2018/06/18 18:50:48
by TrevorH
They all appear to be listed in man rsync

Re: rsync advanced question

Posted: 2018/06/18 20:18:39
by Sven_VD
Hi,

Thanks
I know that they are listed in the man page, the question is why are they there. I only set the options before the dot. I did not specify the option after the dot, for example I never specified -C. After some testing it also appears -C is not active either. So my question is what are the options after the dot for.

Re: rsync advanced question

Posted: 2018/06/18 20:47:37
by avij
Those options are automatically set by the calling rsync to configure the rsync binary at the other end to behave appropriately. This is how rsync works "under the hood". I would not pay too much attention to details like this as long as everything works. And if something does not work, the reason is probably not these hidden parameters.

Is there some problem you are trying to diagnose, or is this only for your academic interest?

Re: rsync advanced question

Posted: 2018/06/18 20:51:32
by Sven_VD
Hi Thanks for your reply,

This is for my academic interest as I first searched for one hour how to disable some of those options after an rsync update which added C and x (3.0 to 3.1), realizing it could not be done and after a while realizing it didn't matter because those options are not in effect or have a different meaning than the options in the manpage.

I noticed it because I have a remote sudoers config that only allows certain rsync commands