本部分简介与 rsync 相关的概念,以及常用命令。
使用 SSH 同步
How to copy files with rsync over SSH
拉取:rsync root@hostname:/foo /bar
推送:rsync /bar root@loacalhost:/foo
Q:通过 SSH 同步,出现 bash: line 1: rsync: command not found 错误提示。
A:远程主机同样需要安装 rsync 服务。或,通过 –rsync-path=/path/to/remote/rsync 指定路径
R:linux – Rsync installed but still getting an error command not found – Super User