# 从 S3 迁移到 Spaces

**URL:** https://meta.discourse.org/t/moving-from-s3-to-spaces/93130
**Category:** Self-hosting
**Tags:** s3
**Created:** [2018年七月25日 19:51 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130 "2018-07-25T19:51:57Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年七月25日 19:51 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/1 "2018-07-25T19:51:57Z")

</div>

我正在尝试制定一个从 AWS S3 迁移到 DO Spaces 以用于备份和上传的低风险策略。最初，我打算采用“长”流程，即：

- 将上传内容迁移到本地
- 移除旧的 S3 配置
- 添加新的 DO Spaces 配置
- 将数据迁移到 Spaces

另一种方案是启动一个备用容器并将其配置为使用 DO Spaces，但我认为将备份导入其中可能会直接覆盖现有设置，导致其再次连接到 S3。

不过，我很好奇是否有更快捷的方式，例如使用类似 S3CMD 的工具将资产从 S3 迁移到 DO，然后仅更改配置以链接到 DO？

对此有什么建议吗？可能存在哪些潜在风险？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2018年七月25日 20:17 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/2 "2018-07-25T20:17:04Z")

</div>

Bhanu, what’s your driver for moving?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年七月25日 20:18 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/3 "2018-07-25T20:18:02Z")

</div>

Experimentation primarily

Then cost effectiveness.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2018年七月25日 20:18 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/4 "2018-07-25T20:18:35Z")

</div>

My AWS free tier comes to an end soon … need to think about these things too!

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年七月25日 20:20 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/5 "2018-07-25T20:20:47Z")

</div>

Mine has expired recently so Iooking for some cost cutting.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2018年七月25日 20:48 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/6 "2018-07-25T20:48:41Z")

</div>

Did you try [How To Migrate from Amazon S3 to DigitalOcean Spaces with rclone | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-migrate-from-amazon-s3-to-digitalocean-spaces-with-rclone) first?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年七月26日 04:16 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/7 "2018-07-26T04:16:16Z")

</div>

I have in past migrated data from S3 to Spaces using S3CMD and I assume it will go through just fine with rclone as well! What I’m more concerned about is rewrites here! Specifically because currently I’m using S3 in addition with CloudFront but I plan to switching to Google Cloud CDN or fastly once my assets have been migrated.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年七月27日 14:00 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/8 "2018-07-27T14:00:35Z")

</div>

Update: I Moved uploads to local today and the first thing that I’ve come across is that assets (despite being migrated from s3 to local) are taking a long time to be served locally. I don’t want to risk breaking things so presumably I’ll have to wait a few hours until all the uploads are being served from my forum then only I can proceed to setting up DO Spaces!

---

<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: [2019年七月20日 12:59 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/9 "2019-07-20T12:59:03Z")

</div>

DigitalOcean 似乎不太擅长运行 Ceph（他们用于 Spaces 的软件）。其阿姆斯特丹 3 号数据中心的集群目前问题频发，备份经常超时。我原本对这款产品寄予厚望，但目前并不推荐。

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2019年七月20日 13:15 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/10 "2019-07-20T13:15:51Z")

</div>

同意，出于稳定性的考虑，我也推荐使用 S3 而不是 Spaces。我在 DigitalOcean Spaces 上遇到过延迟问题，而我们论坛所使用的 S3 + CloudFront 架构则没有这种情况。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年一月13日 06:40 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/11 "2023-01-13T06:40:23Z")

</div>



---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2023年一月13日 11:18 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130/12 "2023-01-13T11:18:07Z")

</div>


