![Does rsync execute commands via SSH on remote, or only use SFTP protocol?](https://linux22.com/image/183609/Does%20rsync%20execute%20commands%20via%20SSH%20on%20remote%2C%20or%20only%20use%20SFTP%20protocol%3F.png)
When using
rsync -az /home/me/ [email protected]:/backup/home/me/
does rsync
need to be installed also on remote?
More precisely, does rsync
run commands on remote via SSH (rsync
specific commands, or patch
, or diff
, etc.) or does it only use SFTP commands on remote?
答案1
Yes, it needs to be at the remote end. From the man
page:
It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination.
Would it be so hard to test?