# yum install rsync.x86_64 -y
本地同步[[email protected] ~]# rsync -av /etc/passwd /tmp/password
sending incremental file list
passwd
sent 959 bytes received 31 bytes 1980.00 bytes/sec
total size is 885 speedup is 0.89
远程同步(同步到另一台机器,另一台机器也需要安装rsnyc)[[email protected] ~]# rsync -av /etc/passwd 192.168.221.20:/tmp/password
[email protected]'s password:
sending incremental file list
passwd
sent 959 bytes received 31 bytes 220.00 bytes/sec
total size is 885 speedup is 0.89
rsync的命令格式rsync [option]... src dest
rsync [option]... src [user@]host:dest
rsync [option]... [user@]host:src dest
rsync [option]... [user@]host::src dest
rsync [option]... src [user@]host::dest
原文:http://blog.51cto.com/13480443/2072360