Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving Google Cloud Storage bucket to another project

What is the best way to move an existing Google Cloud Storage bucket to another project?

I don't want to copy it outside Google Cloud Storage for the transfer, have two copies of the data or use another bucket name.

How close can I get to these requirements?

like image 634
Bartosz Marcinkowski Avatar asked May 05 '15 07:05

Bartosz Marcinkowski


People also ask

How do I change the location of my Google Cloud bucket?

You cannot change a bucket's location after it's created, but you can move your data to a bucket in a different location.

What is the command to move a file from one Cloud Storage bucket to another?

gsutil cp – Copy and Move Files on Google Cloud Platform. gsutil cp/mv command is mainly used to perform actions on the files or objects on the Google Cloud Storage from your local machine or from your Compute Engine Virtual Machine. You can also use gsutil wildcard to sync multiple objects to GCS.


2 Answers

Moving a bucket from one project to another is not currently possible. The easiest way to copy the data would be to spin up a GCE VM and use gsutil -m. This will at least save the bandwidth cost of moving the data.

Update: there is now a Moving and renaming buckets documentation page.

like image 80
jterrace Avatar answered Oct 06 '22 13:10

jterrace


It's now possible directly from the console UI. Simply head on over to the transfer page

or follow the instructions here.

like image 41
Jim Eric Skogman Avatar answered Oct 06 '22 12:10

Jim Eric Skogman