rsync实时同步报错error: some files/attrs were not transferred (see previous errors)解决

一、故障现象

执行rsync同步时出现以下报错

[root@client abc]# rsync -azH --delete --password-file=/etc/server.pass /opt/abc/ backuper@192.168.5.129::wwwroot
rsync: failed to set times on "/." (in wwwroot): Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]

二、解决方法

进入rsync服务器的配置文件,将uid和gid改为root即可

vi /etc/rsyncd.conf 
uid = root
gid = root

重启rsync服务

kill $(cat /var/run/rsyncd.pid)            ###停止

rsync --daemon             ##开启

发布了62 篇原创文章 · 获赞 67 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_42953006/article/details/105065956
今日推荐