使用gsutil从GCP同步到S3

问题描述 投票:0回答:1

还有一个类似的问题,答案为here。但是,那里最重要的答案对我不起作用:

如果我使用:

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

对我来说失败:

The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-west-2'

好的,rclone可以工作,但是为什么不使用gsutil rync?

顺便说一下,我在伦敦地区。

amazon-s3 google-cloud-platform rsync gsutil
1个回答
1
投票

与gsutil命令相关联的是一个名为~/.boto的配置文件。在此文件中,可以添加/编码:

[Credentails]
s3_host=s3.eu-west-2.amazonaws.com

有关此文件和相关信息的详细信息,请参阅:

config - Obtain credentials and create configuration file

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.