您的位置:首页 > 其它

rsync服务配置

2016-01-07 14:07 239 查看
记性不好了 总是忘记 只有记录一下了

1)默认rsync服务没有 /etc/rsyncd.conf文件 需要创建一个 并且贴入以下内容:

uid = root

gid = root

port = 873

hosts allow = 10.13.254.43,10.13.254.42

use chroot = true

max connections = 5

pid file = /var/run/rsyncd.pid

lock file = /var/run/rsync.lock

log file = /var/log/rsyncd.log

[test]

path = /tmp/test

comment = rsync files

ignore errors

read only = yes

auth users = rsync

secrets file = /etc/rsync.passwd

2) echo "rsync:test" > /etc/rsync.passwd

3) chmod 600 /etc/rsync.passwd

4) rsync --daemon

5) 客户端: rsync -avzP rsync@xxx.xxx.xxx.xxx::test /tmp/

以上记录下
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: