Displaying 1 result from an estimated 1 matches for "start_rsync_ack".
2003 Mar 08
1
[patch] rsync over existing I/O connections (new feature)
...tom protocol. I want to use the existing ssh connection to transfer files,
but I want the flexibility of rsync to do it.
With this patch, I can do the following in my client (assuming input fd of 0
and output fd of 1):
- send the server a START_RSYNC request on stdout (my protocol)
- receive a START_RSYNC_ACK reply on fd stdin (my protocol)
- clear the close-on-exec flags for the input and output (ssh) descriptors if
necessary using fcntl (probably not required if using stdin/stdout)
- fork/exec: rsync --partial --quiet --fd-in 0 --fd-out 1 :. myfile
- return to blocking I/O for stdin/stdout using fcntl...