SCP will start from the very beginning, trying to copy every file, whereas RSYNC will continue from where it stopped.
SCP 将从头开始,尝试复制每个文件,而 RSYNC 将从停止处继续。
PKM OS
For example, here just by specifying these three flags, I'm telling RSYNC to kind of preserve all the permissions whenever possible to try to check if the file has already been copied.
This solution is much better than something like creating an alias for SSH, because other programs like SCP and RSYNC also know about the dotfiles for SSH and will use them whenever they are there.
rsync is a widely-used utility to keep copies of a file on two computer systems. It is commonly found on Unix-like systems and functions as both a file synchronization and file transfer program. The rsync algorithm, a type of delta encoding, is used to minimize network usage. Zlib may be used for additional compression, and SSH or stunnel can be used for data security.