在 GCP 中将桶数据从区域移动到多区域

moving bucket data from regional to multiregional in GCP

目前在多区域创建了存储桶,我想将其更改为区域存储桶,我创建了一个新的区域存储桶,因此如何将存储桶中的对象从多区域移动到区域

1.Open Google Cloud Console 中的传输页面。

2.click 创建传输作业。

3.select 源作为您的多区域存储桶。

4.select 目的地作为您的区域存储桶。

5.if 您要删除源存储桶 select 在传输对象后从源中删除对象。

6.click 创建。

这个过程可能需要一些时间;但是,单击“创建”后,您可以离开 Google Cloud Console。

要查看传输进度:在 Google 云控制台中打开传输页面。

如果是一次性副本,您可以使用 gsutil command-line 工具

gsutil -m cp -r gs://source-bucket gs://destination-bucket

-m is used for parallel multi-threaded/multi-processing copy

-r option to copy an entire directory tree