【发布时间】:2017-09-28 00:43:28
【问题描述】:
运行这个命令:
oc rsync local/path/to/mongodump <mongodb_pod_name>:/var/lib/mongodb/data
得到这个输出:
sent 31,825,902 bytes received 273 bytes 1,720,333.78 bytes/sec
total size is 31,817,949 speedup is 1.00
rsync: failed to set permissions on "/var/lib/mongodb/data/." (in root):
Operation not permitted (1)
rsync: failed to modify permissions on "/var/lib/mongodb/data/." (in root):
Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors)
(code 23) at main.c(1165) [sender=3.1.1]
error: exit status 23
当我尝试跑步时
$ oc rsh <mongodb_pod>
$ cd /var/lib/mongodb/data/mongodump
我的权限被拒绝
【问题讨论】: