#编辑/etc/rsyncd.conf文件
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
port = 873
[backup]
path = /home/backup
comment = Backup folder
read only = false
list = true
uid = root
gid = root
auth users = backup
secrets file = /etc/rsyncd.secrets
===================================
#编辑/etc/rsyncd.secrets文件
backup:password
上面设置一个用户名字为backup,密码password的用户
#设置权限为600
chmod 600 /etc/rsyncd.secrets
#防火墙打开873端口
#重启rsync服务:
sudo systemctl restart rsync
然后群晖Hyper Backup来这里,设置rsync相容服务器
实测连接超过100ms的香港debian11,初次握手的速度稍慢,连上后还是挺快的。
没有评论:
发表评论