首页 > 其他 > 详细

rsync

时间:2017-05-23 13:48:00      阅读:329      评论:0      收藏:0      [点我收藏+]

常用场景

无密码同步

服务端:vim /etc/rsyncd.conf

#This is the rsync daemon configuration

#global settings
pid file = /var/run/rsyncd.pid
port = 873
lock file = /var/run/rsyncd.lock
log file = /var/log/rsync.log
gid = root
uid = root

#module settings
[share_data]
path = /web/rsync/share_data
use chroot = no
max connections = 15
read only = yes
write only = no
list = no
ignore errors = yes
timeout = 120

/usr/bin/rsync --daemon
mkdir -p /web/rsync/share_data

客户端

rsync -avz --progress root@192.168.1.98::share_data /home/hadoop/share_data

 限制流量同步

rsync -avz --bwlimit=50 --progress root@192.168.1.98::share_data /home/hadoop/share_data

rsync

原文:http://www.cnblogs.com/xianguang/p/6893584.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!