Rsync 常见错误

错误1:
[root@nfs01 ~]$rsync -avz /data rsync_backup@172.16.1.41::backup  --password-file=/etc/rsync.password
@ERROR: invalid uid rsync
rsync error: error starting client-server protocol (code 5) at main.c(1649) [sender=3.1.2]
原因:没有添加rsync用户
解决;useradd rsync

错误2:
[root@nfs01 data]$rsync -avz /data rsync_backup@172.16.1.41::backup  --password-file=/etc/rsync.password
sending incremental file list
data/
data/test1
data/test2
data/test3
rsync: chgrp "data/.test1.RWib4R" (in backup) failed: Operation not permitted (1)
rsync: chgrp "data/.test2.zweJW3" (in backup) failed: Operation not permitted (1)
rsync: chgrp "data/.test3.BjuhPf" (in backup) failed: Operation not permitted (1)
sent 218 bytes  received 343 bytes  1,122.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179) [sender=3.1.2]
原因:没有去谦虚
解决:在服务端rsyncd.conf配置文件添加fake super = yes 参数,重启服务

错误3:
[root@nfs01 data]$rsync -avz /data rsync_backup@172.16.1.41::backup  --password-file=/etc/rsync.password
@ERROR: auth failed on module backup
rsync error: error starting client-server protocol (code 5) at main.c(1649) [sender=3.1.2]
解决:用户认证问题,检查服务端配置相关的等,密码文件权限等,如密码文件错误。

错误4:
[root@nfs01 data]$rsync -avz /data rsync_backup@172.16.1.41::backup  --password-file=/etc/rsync.password
rsync: could not open password file /etc/rsyncd.password: No such file or directory (2)
rsync error: syntax or usage error (code 1) at authenticate.c(187) [sender=3.1.2]
解决:检查密码文件是否存在


分享到:
关键词:Linux运维

网友留言(0 条)

发表评论