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?
You cannot change a bucket's location after it's created, but you can move your data to a bucket in a different location.
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.
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.
It's now possible directly from the console UI. Simply head on over to the transfer page
or follow the instructions here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With