使用 rsync 出错:rsync: chgrp "test" failed: Operation not permitted

两台服务器,A服务器为更新源服务器;B服务器为目的服务器;
现在把A服务器的网站文件备份到B服务器上,相关信息如下:
B服务器(rsync服务端)rsyncd.conf配置:

uid = nobody
gid = nogroup
use chroot = no
max connections = 100
timeout = 600
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
log file = /var/log/rsyncd.log
[test]
path = /data/www/test
ignore errors
read only = no
list = no
hosts allow = *
auth users = test
secrets file = /etc/rsyncd/test_server.pwd

A服务器已经安装rsync,在终端输入:

rsync -vzrtopg --delete --progress /data/www/test test@192.168.0.1::test --password-file=/etc/rsyncd/test.pwd

监控B服务器上的rsyncd.log:

2016/03/28 11:40:23 [30017] params.c:Parameter() - Ignoring badly formed line in config file: ignore errors
2016/03/28 11:40:23 [30017] connect from mail18.f.tsender.com (192.168.0.1)
2016/03/28 11:40:23 [30017] rsync to test/ from test@mail18.f.tsender.com (192.168.0.1)
2016/03/28 11:40:23 [30017] receiving file list
2016/03/28 11:40:23 [30017] rsync: chgrp "test" (in test) failed: Operation not permitted (1)
2016/03/28 11:40:23 [30017] rsync: chgrp "test/.file-dump.txt.NZqVgf" (in test) failed: Operation not permitted (1)
2016/03/28 11:40:23 [30017] sent 247 bytes  received 156 bytes  total size 8

服务端文件已经生成,如何解决上面的问题,如果您能给出一些建议,对我来说是莫大的帮助。

阅读 15.4k
1 个回答

不是写的很清楚:rsync: chgrp "test" (in test) failed: Operation not permitted (1)了吗?

/data/www/test  这个目录权限是不是test用户所有呢?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进