码迷,mamicode.com
首页 > 其他好文 > 详细

rsync-文档

时间:2014-08-26 11:57:36      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:文档

wget http://dxdown3.onlinedown.net/down/rsync-3.0.9.tar.zip

gunzip rsync-3.0.9.tar.zip

tar -zxvf rsync-3.0.9.tar.gz

cd rsync-3.0.9.tar.gz

./configure --prefix=/usr/local/rsync309

make && make install


服务端:

vim /etc/rsyncd.conf

strict modes =ye

port = 873

log file = /var/log/rsyncd.log

pid file = /usr/local/rsync309/rsyncd.pid


[brand]

max connections = 10

uid = root

gid = root

path = /data/brand

ignore errors

read only = no

writee only = no

host allow = 10.0.0.0/255.0.0.0

hosts deny =

auth users = branduser

secrets file = /etc/rsync.pass


手工创建 /etc/rsync.pass

vim /etc/rsync.pass

rsyncuser:811939141329421


useradd rsyncuser

passwd rsyncuser

chmod 600 /etc/rsync.pass


/usr/local/rsync309/bin/rsync --daemon


客户端:

vim /etc/rsync.password

811939141329421


/usr/local/rsync309/bin/rsync  -vzrtopg --progress --delete --password-file=/etc/rsync.password  rsyncuser@10.10.35.97::brand  /data/brand



本文出自 “三毛JEFF” 博客,请务必保留此出处http://smucat.blog.51cto.com/2235605/1544972

rsync-文档

标签:文档

原文地址:http://smucat.blog.51cto.com/2235605/1544972

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!