且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将数据从 Google Cloud Storage 导出到 Amazon S3

更新时间:2022-11-07 15:16:08

您可以使用 gsutil 将数据从 Google Cloud Storage 存储桶复制到 Amazon 存储桶,使用的命令如下:

You can use gsutil to copy data from a Google Cloud Storage bucket to an Amazon bucket, using a command such as:

gsutil -m rsync -rd gs://your-gcs-bucket s3://your-s3-bucket

请注意,上面的 -d 选项会导致 gsutil rsync 从您的 S3 存储桶中删除 GCS 存储桶中不存在的对象(除了添加新对象).如果您只想将新对象从 GCS 添加到 S3 存储桶,则可以不使用该选项.

Note that the -d option above will cause gsutil rsync to delete objects from your S3 bucket that aren't present in your GCS bucket (in addition to adding new objects). You can leave off that option if you just want to add new objects from your GCS to your S3 bucket.