标签:远程 数据备份 /tmp too speed host glin /etc/ install
rsync(remote sync): 远程同步,可以本地同步数据,不会覆盖以前的数据,而是先判断已经存在的数据和新数据的差异,只有数据不同时才会把不相同的部分覆盖。# yum install rsync.x86_64 -y
本地同步
[root@apenglinux-001 ~]# 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)
[root@apenglinux-001 ~]# rsync -av /etc/passwd 192.168.221.20:/tmp/password root@192.168.221.20'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
标签:远程 数据备份 /tmp too speed host glin /etc/ install
原文地址:http://blog.51cto.com/13480443/2072360