实用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服务

猜你喜欢

转载自zhtch-123.iteye.com/blog/798436