gpt4 book ai didi

amazon-s3 - 使用 gsutil 从 GCP 同步到 S3

转载 作者:行者123 更新时间:2023-12-02 02:50:46 25 4
gpt4 key购买 nike

有一个类似的问题及其答案 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?

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

最佳答案

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

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

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

config - Obtain credentials and create configuration file

关于amazon-s3 - 使用 gsutil 从 GCP 同步到 S3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62005171/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com