快捷搜索:   nginx

Linux rsync 服务器简略配置

1。安装 yum install
2。启动 chkconfig rsync on
3。建立配置文档 /etc/rsyncd.conf,并建立/var/rsync目录,注意用户对该目录的权限   确保密码文档安全
[rsync]
path = /var/rsync
comment = rsync dir
uid = root
gid = root
auth users=yuyii
secrets file = /etc/rsyncd.secrets
read only = no
/etc/rsyncd.secrets
yuyii:123456
chmod 600 /etc/rsyncd.secrets
4。启动服务 service xinetd restart
5。本地测试
rsyncd –list-only 10.1.2.187:: 显示: rsync rsync dir 说明我rsync提供的可用目录
rsyncd -av /tmp/a [email protected]::rsync 输入密码,备份文档
6。远程备份 rsyncd -av /boot [email protected]::rsync 注意iptables的配置,rsync 用的端口 ,873

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论