如何将数据直接从一个Google Cloud Storage项目移动到另一个项目? [英] How can I move data directly from one Google Cloud Storage project to another?

查看:124
本文介绍了如何将数据直接从一个Google Cloud Storage项目移动到另一个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将数据直接从一个Google Cloud Storage项目移动到另一个项目? 我了解如何上传和下载,但是我想直接在项目之间转移.

How can I move data directly from one Google Cloud Storage project to another? I understand how to upload and how to download, but I want to transfer directly between projects.

推荐答案

要将任何单个对象从一个GCS位置复制到另一位置,可以使用copy命令.可以通过我们的两个公共API或使用命令行客户端 gsutil .

To copy any single object from one GCS location to another, you can use the copy command. This can be done from either of our public APIs, or by using the command-line client, gsutil.

使用 gsutil cp command 可以这样使用:

With gsutil, the cp command could be used like this:

gsutil cp gs://bucket1/obj gs://bucket2/obj2

修改:
自从我撰写本文以来,
Google Cloud Transfer Service 可用了,这对于复制整个文档非常有用GCS项目之间的存储桶,或将整个存储桶从S3复制到GCS.您可以在此处找到更多信息.

Edit:
Since I wrote this, the Google Cloud Transfer Service has become available, which is good for copying whole buckets between GCS projects, or for copying whole buckets from S3 into GCS. You can find out more here.

这篇关于如何将数据直接从一个Google Cloud Storage项目移动到另一个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆