Appearance
ssh-keygen -t rsa
ssh-copy-id user@remote
# 从远程拉取文件到本地 rsync -av username@remote_host:/源目录/ /本地目录/ # 从本地推送文件到远程 rsync -av /本地目录/ username@remote_host:/远程目录/ # 备份机器拉取远端文件 rsync -av --delete user@remote_host:/destination
rsync 用法教程rsync用法详解:最全面的rsync使用指南