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服务
/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服务
本文详细介绍如何配置RSYNC服务实现文件同步,并设置SSH服务确保远程连接的安全性。包括配置rsyncd.conf文件以实现文件的高效同步及通过SSH进行安全的数据传输。
1544

被折叠的 条评论
为什么被折叠?



