Rsync 的优势和功能

  • 高效复制和同步远端服务上的文件

  • 支持复制软连接、设备、所属者、所有组和权限

  • rsync 使用 remote-update 协议可仅更新不同的文件因此比 scp 更快。

  • rsync 带宽消耗小,使用压缩和解压缩发送和接受文件数据

基本语法

# rsync options source destination

常用语法介绍

参考来源

  • https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/

  • https://phoenixnap.com/kb/rsync-command-linux-examples