wget https://download.samba.org/pub/rsync/src/rsync-3.1.2.tar.gz tar -zxvf rsync-3.1.2.tar.gz cd rsync-3.1.2 ./configure make make install
官网:https://rsync.samba.org/ 下载路径:https://download.samba.org/pub/rsync/ 找最新版即可。 ========================================== 两台机器都要安装rsync,否则报错: bash: rsync: command not found rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: remote command not found (code 127) at io.c(635) [sender=3.0.2] ------------------------------------- 简单的使用: rsync -av tomcat1 --exclude=logs root@xx.xx.xx.xx:/opt/tomcat/
详细参数: http://www.jb51.net/article/74589.htm
|