我正尝试将我的(新)Ubuntu web服务器目录同步到我的Synology NAS。
networking备份是启用,当我做一个干运行:
rsync --dry-run . rsync://[email protected]
它显示可用的模块。
当我尝试与rsync同步时,它会失败,并显示以下消息:
@ERROR: host is denied to login
同步完成与此脚本:
#!/bin/bash RSYNC="/usr/bin/rsync -a --delete" export RSYNC_PASSWORD=MyPasswrd rsync -avz -t --timeout=1200 /var/www/ [email protected]::NetBackup/web/var/www/
所有目录都经过testing。 这工作在我以前的Ubuntu服务器(10.04)
/var/log/rsyncd.log:
2013/12/31 02:22:58 [8601] rsyncd version 3.0.9 starting, listening on port 873 2013/12/31 02:23:05 [10188] name lookup failed for 192.168.1.51: Name or service not known 2013/12/31 02:23:05 [10188] connect from UNKNOWN (192.168.1.51) 2013/12/31 02:23:05 [10188] module-list request from UNKNOWN (192.168.1.51) 2013/12/31 02:23:19 [11408] name lookup failed for 192.168.1.51: Name or service not known 2013/12/31 02:23:19 [11408] connect from UNKNOWN (192.168.1.51) 2013/12/31 02:23:19 [11408] rsync error: IP is denied by remote machine (code 50) at authenticate.c(563) [Receiver=3.0.9]
UPDATE
我的数据库服务器,与我的networking服务器一起作为第二个服务器安装的Ubuntu版本,使用相同的脚本:
#backup the tables to NAS RSYNC="/usr/bin/rsync -a --delete" export RSYNC_PASSWORD=MyPasswrd rsync -avz -t --timeout=1200 /home/user/backup/mysql/ [email protected]::NetBackup/mysqldb/
这完美的作品…
更新2 *
与详细(-v)
opening tcp connection to 192.168.1.150 port 873 sending daemon args: --server -vvlogDtprze.iLsf --timeout=1200 . NetBackup/webserver/var/www/ @ERROR: host is denied to login rsync error: error starting client-server protocol (code 5) at main.c(1534) [sender=3.0.9]
听起来就像IP由于某种原因被禁止了(密码尝试太多了?)。
你可以尝试改变IP来validation,如果这很容易做你的情况。
这个链接可能会有帮助: http : //forum.synology.com/enu/viewtopic.php?f=145&t=22084
尽pipe不支持 ,但您可以尝试从Synology NAS中的/etc/hosts.deny
(如果出于某种原因,如fail2ban规则)中删除新服务器的IP地址,或将其添加到/etc/hosts.allow