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

Rsync同步服务器

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

标签:服务器   file   

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同步服务器

标签:服务器   file   

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

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