How can I move data directly from one Google Cloud Storage project to another?

HannahS picture HannahS · Jun 25, 2015 · Viewed 31.9k times · Source

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.

Answer

Brandon Yarbrough picture Brandon Yarbrough · Jun 25, 2015

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.

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

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

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.