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
- Start ssh and connect to server while remembering the pid
- Successive calls to
rsync -e [pid] [source] [destination]
- 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