I would suggest to override instead of append, as this gives most flexibility, e.g. I could imagine there are cases where one would want to turn-off compression. If you choose override, it would be helpful to mention the default parameters in the man pages.

No idea about the best practice way, though. Your suggestions both sound both good to me.



On 08/03/2017 11:00 PM, Ole Tange wrote:
On Thu, Aug 3, 2017 at 1:56 PM, Benjamin Leutner
<benjamin.leut...@uni-wuerzburg.de> wrote:
I just had to add yet another rsync flag, namely "-L" in order to transfer
the actual file a symlink points to instead of the symlink itself when using
--transferfile

This gave me the idea that maybe instead of hard-coding all rsync options,
parallel could accept additional rsync flags and pass them on to rsync.
Implemented like that, it would give the user access to the full rsync
functionality without breaking compatibility with old platforms.
I like that better. Is there a recognized way of doing that, that others use?

To me the obvious would be:

PARALLEL_RSYNC=-Flags

Possibly:

PARALLEL_RSYNC_OPTS=-Flags

Should it append-to or override the default: -rlDzR ?

I assume we still want to keep '-e '$PARALLEL_SSH (so you can use
custom ssh command) and '--protocol 30' if the version >= 3.1.


/Ole



Reply via email to