gsutil rsync 在开始同步后退出

Nic*_*ser 2 rsync google-cloud-storage gsutil google-cloud-platform

我正在尝试将文件夹从 Google 计算引擎实例同步到云存储,但它只是在没有任何指针的情况下退出。它说开始同步,然后返回到提示。

gsutil -m rsync -r public/ gs://mybucket/public
Building synchronization state...
Starting synchronization
Run Code Online (Sandbox Code Playgroud)

我的 gsutil 版本

gsutil version -l
gsutil version: 4.6
checksum: 397d8391fddbf1c48cc31f9c2911be68 (!= 70858e3360112a908c76273e6c947098)
boto version: 2.30.0
python version: 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2]
OS: Linux 3.16.0-62-generic
multiprocessing available: True
using cloud sdk: True
config path: /etc/boto.cfg
gsutil path: /usr/lib/google-cloud-sdk/platform/gsutil/gsutil
compiled crcmod: False
installed via package manager: False
editable install: False
Run Code Online (Sandbox Code Playgroud)

我还尝试分别更新 gsutil 和 gcloud 组件,但这也不起作用

gcloud components update
You cannot perform this action because the component manager has been 
disabled for this installation.  If you would like get the latest 
version of the Google Cloud SDK, please see our main download page at:

  https://developers.google.com/cloud/sdk/

ERROR: (gcloud.components.update) The component manager is disabled for this installation
Run Code Online (Sandbox Code Playgroud)

有什么想法我可能会在这里遗漏吗?

Mik*_*rtz 5

当 gsutil rsync 只输出“开始同步”(没有“复制”输出)时,这意味着它发现在您指定的源和目标之间没有任何需要同步的内容。