0

Rsync has a flag for specifying remote shell to use thru -e flag. Common usage like so,

rsync -e "ssh ..." [source] [destination]

I'm wondering if there is a way for it to reuse an already running remote shell?

Like

  1. Start ssh and connect to server while remembering the pid
  2. Successive calls to rsync -e [pid] [source] [destination]
  3. Terminate ssh

EDIT: I'm using cygwin. I tried ControlMaster but can't get it to work. I suspect it is not possible thru CygWin source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.