我希望能够将Git存储库同步到AWS S3以进行备份。此外,我希望公众能够通过git clone
来访问我的备份。我的步骤如下:
s3cmd mb s3://lktesting
git update-server-info
s3cmd -P sync .git/ s3://lktesting
s3cmd ws-create s3://lktesting
s3cmd ws-info s3://lktesting
我以为这个之前可以用,但现在出现了以下问题:
git clone http://lktesting.s3-website-ap-southeast-1.amazonaws.com/
Cloning into 'lktesting.s3-website-ap-southeast-1.amazonaws.com'...
error: The requested URL returned error: 403 Forbidden (curl_result = 22, http_code = 403, sha1 = bf866b95d9517ea38e213740cead5cf1c313f5aa)
Checking connectivity... done.
有人知道我缺少什么吗?
aws s3api put-bucket-acl --bucket $BUCKET --acl public-read
,我将接受您的答案。 - hendry