How to use --rsh with multiple sub-arguments?
Kevin Korb
kmk at sanitarium.net
Fri Oct 7 09:10:03 UTC 2022
You can put it all in quotes. Also, if you are scripting you might find
setting $RSYNC_RSH easier.
On 10/7/22 04:46, c.buhtz--- via rsync wrote:
> Hello,
>
> rsync does offer the --rsh argument. I would like to use it that way
>
> rsync --rsh=ssh -o ServerAliveInterval=240 -o LogLevel=Error -o IdentityFile=/home/user/.ssh/id_rsa -p 22 --delete --delete-excluded -v -i / user at localhost:"/tmp/tmp6x75lz10"
>
> You see there are several sub-arguments that need to be put to "ssh" via the "--rsh". How can I be sure that e.g. "-o ServerAliveInterval" is interpreted by ssh and not by rsync?
>
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
More information about the rsync
mailing list