google-cloud-platform - 无法打开当前工作目录的路径:尝试在 gcloud 中运行 rsync 命令两次时权限被拒绝
问题描述
我正在尝试将数据从 复制file stores
到google cloud bucket
.
这是我正在使用的命令:
gsutil rsync -r /fileserver/demo/dir1 gs://corp-bucket
corp-bucket: Name of my bucket
/fileserver/demo/dir1: Mount point directory (This directory contain the data of the file store)
此命令在第一次运行良好,它将目录的数据复制/fileserver/demo/dir1
到云存储桶,但随后我从云存储桶中删除数据并再次运行相同的命令而不进行任何更改,然后我收到此错误:
cannot open path of the current working directory: Permission denied
注意:如果我对 /fileserver/demo/dir1 的文件进行了微小的更改并运行上述命令,那么它再次运行正常,但我的问题是为什么它在没有任何更改的情况下无法正常工作,有没有办法复制文件不做任何改变
谢谢。
解决方案
推荐阅读
- java - C++ 到 Java。从字节数组中获取结果
- haskell - Haskell wai 中间件 - 如果从第一个应用程序返回 404,如何运行应用程序?
- angular - 角度:通过动态地图键绑定到地图的 2 种方式
- c# - 为 Service Fabric 应用程序类编写单元测试
- python-3.x - python3.x中的日期时间模块
- laravel - 如何在 Laravel 中实现授权(Guard),而不使用 make:auth 命令
- php - 为什么没有创建项目?
- rest - 通过 https 使用 kubeconfig 提供 Kubernetes 集群身份验证
- html - 如何防止标签重定向用户,同时保持其 href 属性?
- java - javax.persistence.PersistenceException:没有名为 ZaapMartPU 的 EntityManager 的持久性提供程序