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

  • Check this post : https://unix.stackexchange.com/questions/50508/reusing-ssh-session-for-repeated-rsync-commands – ankit7540 Jun 13 '17 at 05:23
  • @ankit7540 Thank you for that info. I tried using ControlMaster but can't get it to work. I'm using CygWin. I edited my post to include this information. – Ezekiel Baniaga Jun 14 '17 at 03:38

0 Answers0