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

查看:19
本文介绍了如何将数据直接从一个 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.

使用 gsutilcp 命令 可以这样使用:

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天全站免登陆