# 如何将 Lightsail S3 存储桶移动到官方 AWS S3 存储桶以及 CloudFront CDN？

**URL:** <https://meta.discourse.org/t/how-to-move-a-lightsail-s3-bucket-to-an-official-aws-s3-bucket-as-well-as-cloudfront-cdn/217714>\
**Category:** Support\
**Created:** [2022年二月9日 21:14 UTC](https://meta.discourse.org/t/how-to-move-a-lightsail-s3-bucket-to-an-official-aws-s3-bucket-as-well-as-cloudfront-cdn/217714 "2022-02-09T21:14:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2022年二月9日 21:57 UTC](https://meta.discourse.org/t/how-to-move-a-lightsail-s3-bucket-to-an-official-aws-s3-bucket-as-well-as-cloudfront-cdn/217714/2 "2022-02-09T21:57:57Z")

</div>

有一个 [https://meta.discourse.org/t/moving-from-one-s3-bucket-to-another/184779，这并不容易。](https://meta.discourse.org/t/moving-from-one-s3-bucket-to-another/184779%EF%BC%8C%E8%BF%99%E5%B9%B6%E4%B8%8D%E5%AE%B9%E6%98%93%E3%80%82)

我想，如果一切都还在 Lightsail 存储桶中，就像你说的，我会这样做：

- 在带有旧存储桶的站点上启用隐藏的 `SiteSetting.include_s3_uploads_in_backups=true`
- 设置为只读
- 进行备份
- 将该备份恢复到新配置的系统
- 将 DNS 切换到新系统

我会保留旧系统一段时间，直到你确定新系统一切正常。

如果你在一个实例中有多个存储桶中的内容，事情会变得复杂得多。我有几个站点是这样的，我一直在尝试解决这些问题，时间比我愿意公开承认的要长。

---

_[View the full topic](https://meta.discourse.org/t/how-to-move-a-lightsail-s3-bucket-to-an-official-aws-s3-bucket-as-well-as-cloudfront-cdn/217714)._
