4

gsutil has a really neat feature called 'rsync' that synchronises 2 buckets/directories in GCS. I've searched the JSON API and the Java Client library but I can't see anything that supports this type of functionality out-of-the-box.

Does anyone know how to achieve the same functionality of 'rsync' via the Java Client (without actually writing the diff logic between the 2 buckets)?

4

2 回答 2

5

那没有。gsutil 的 rsync 功能是使用 JSON API 实现的,但 JSON API 本身并没有对存储桶或目录之间同步的任何固有支持。您当然可以以相同的方式实现同​​步,或者您可以调用 gsutil 本身,但这几乎是您主要的两个选择。

于 2014-07-30T06:40:10.837 回答
2

截至 2014 年 5 月,官方工具现在有 RSYNC 详细信息可以在这里找到:

http://googlecloudplatform.blogspot.com/2014/05/a-new-and-improved-gsutil-now-with-rsync.html

gsutil rsync :rsync 命令自动将本地文件系统目录与 Google Cloud Storage 存储桶的内容同步,或者跨云存储桶或提供程序同步。

于 2015-01-16T06:16:01.567 回答