首页 > 其他 > 详细

Rsync同步服务器

时间:2017-04-27 11:27:04      阅读:165      评论:0      收藏:0      [点我收藏+]

Rsync

比scp更强大的同步工具


安装rsync(本地默认有的)

vim /etc/rsyncd.conf


uid = nobody

gid = nobody

use chroot = no

max connections = 30

pid file = /var/run/rsyncd.pid

lock file = /var/run/rsyncd.lock

log file = /var/log/rsyncd.log

transfer logging = yes

log format = %t %a %m %f %b

syslog facility = local3

timeout = 300

 

[www]

read only = yes

path = /usr/local/webapps

comment = www

auth users =test

secrets file = /etc/rsync.pas

hosts allow = 192.168.0.11,192.168.0.12

 

[web]

read only = yes

path = /data/www/web

comment = web

auth users =test

secrets file = /etc/rsync.pas

hosts allow = 192.168.1.11,192.168.0.0/24


rsync --demon 启动服务

Rsync同步服务器

原文:http://mustafayin.blog.51cto.com/12558614/1919770

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