Does rsync execute commands via SSH on remote, or only use SFTP protocol?

Does rsync execute commands via SSH on remote, or only use SFTP protocol?

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?

相关内容