7

is it possible to rsync to the remote server that doesn't have rysnc installed?

I tried to rsync to our remote server that doesn't have rsync installed, all I received is this error:

bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: remote command not found (code 127) at io.c(463) [receiver=2.6.8]

1 Answer 1

8

You can copy the local rsync binary to the other server using scp and then use rsync with the --rsync-path=PROGRAM directive where PROGRAM is the path to the uploaded rsync binary.

For instance:

which rsync
/usr/bin/rsync
scp /usr/bin/rsync user@remote:~/rsync
rsync -a --rsync-path=~/rsync source dest 
2
  • what will be the source and dest?
    – Dan
    Commented Apr 4, 2017 at 7:21
  • source will be the data to be copied, dest will be the location to put it to.
    – Lambert
    Commented Apr 4, 2017 at 7:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .