Rsync常见问题及解决办法

Rsync常见问题及解决办法

错误一

password file must not be other-accessible
continuing without password file
Password:
解决方法:1、检查rsync客户端路径填写是否正确
     2、检查目录权限设置是否正确
     3、客户端和服务端的密码文件权限是否正确

错误二

@ERROR: Unknown module ‘bak’
rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver= 3.0.3]
解决方法:检查服务端配置文件的模块名称是否与客户端命令输入的一致

错误三

rsync: failed to connect to 10.10.10.10: Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]
解决方法:1、检查服务端服务的状态,ps -aux | grep rsync
     2、检查防火墙配置,873端口 iptables -A INPUT -p tcp –dport 873 -j ACCEPT

错误四

@ERROR: access denied to gmz88down from unknown (10.10.10.10)
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
解决方法:检查服务端配置文件,hostallow限制了IP

错误五

@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
解决方法:检查服务端的备份目录及权限

错误六

rsync error: error starting clie
nt-server protocol (code 5) at main.c(1524) [Receiver= 3.0.7 ]
解决方法:检查服务端配置文件

错误七

rsync: ch
own “” failed: Invalid argument (22)
解决方法:权限无法复制,去掉同步权限的参数

错误八

@ERROR: auth failed on module bak
rsync error: error starting client-server protocol (code 5) at main.c(1530) [receiver=3.0.6]
解决方法:检查服务器密码,检查模块

错误九

rsync: connection unexpectedly closed (5 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
解决办法:模块read only = no设置为no false

错误十

@ERROR: invalid uid nobody
rsync error: error starting client-server protocol (code 5) at main.c(1503) [sender=3.0.6]
解决办法:设置uid =0;gid = 0

错误十一

rsync: Failed to exec ssh: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(84) [receiver=3.0.6]
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in IPC code (code 14) at io.c(600) [receiver=3.0.6]
解决方法:安装ssh客户端

错误十二rsync 分发文件报错 Permission denied(13)

故障现象

Rsync常见问题及解决办法
解决方法
Rsync常见问题及解决办法