首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

适用RSYNC服务同步文件

2012-09-18 
实用RSYNC服务同步文件1.配置RSYNC服务:/etc/rsyncd.confgid usersread only trueuse chroot truetr

实用RSYNC服务同步文件
1.配置RSYNC服务:
/etc/rsyncd.conf
gid = users
read only = true
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
hosts allow = trusted.hosts
slp refresh = 300

[CONTENT]
path = ${path}
comment = mdmc comment
auth users = root
secrets file = /etc/rsyncd.secrets

2.实用RSYNC同步文件:
rsync -vzrtopg --timeout 600 --delete sourcepath root@IP/aimpath
3.建立SSH服务

热点排行