# S3 파일을 로컬로 수동으로 마이그레이션하는 방법?

**URL:** https://meta.discourse.org/t/how-to-manually-migrate-s3-files-to-local/354469
**Category:** Support
**Created:** [2월 25, 2025, 6:40오후 UTC](https://meta.discourse.org/t/how-to-manually-migrate-s3-files-to-local/354469 "2025-02-25T18:40:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Yt.w](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yt.w/32/348367_2.png) [@Yt.w](https://meta.discourse.org/u/Yt.w)
#### Post date: [2월 25, 2025, 6:40오후 UTC](https://meta.discourse.org/t/how-to-manually-migrate-s3-files-to-local/354469/1 "2025-02-25T18:40:12Z")

</div>

제 질문과 관련된 주제를 검색해 보니, 이제 `rake uploads:migrate_from_s3`를 사용할 수 없는 것 같습니다.

그렇다면 안전하게 이를 수행하는 방법은 무엇일까요?

S3에서 모든 업로드 파일을 다운로드한 후 내 로컬 서버에 업로드하는 것인가요?

그 다음 리매핑(remapping)을 수행해야 하나요?

리매핑 관련해서 알려주시는 분이 있다면 정말 도움이 될 것 같습니다…

---

<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: [2월 25, 2025, 10:04오후 UTC](https://meta.discourse.org/t/how-to-manually-migrate-s3-files-to-local/354469/2 "2025-02-25T22:04:36Z")

</div>

> [@Yt.w](#):
>
> 질문과 관련된 주제를 검색해 보니 `rake uploads:migrate_from_s3`를 더 이상 사용할 수 없는 것 같습니다.

먼저, [Enable hidden setting to include S3 uploads in the backups](https://meta.discourse.org/t/enable-hidden-setting-to-include-s3-uploads-in-the-backups/276535) 를 확인해 주세요.

그 다음 백업을 만든 후 복원하세요. 새 서버에서 복원하는 것을 권장합니다. 기존 yml 파일을 사용하되, USE\_S3, 업로드 버킷 및 S3로 에셋을 업로드하는 관련 설정을 삭제해야 합니다.

[rsync로 다른 VPS로 Discourse 사이트 이동](https://meta.discourse.org/t/move-a-discourse-site-to-another-vps-with-rsync/43812)을 수행하여 SSL 인증서를 유지할 수 있습니다. `--exclude postgres_*"` 옵션을 사용하는 것이 좋습니다.

그 후 [명령줄에서 백업 복원하기](https://meta.discourse.org/t/restore-a-backup-from-the-command-line/108034)를 수행하면 됩니다.

---

<div class="post-metadata">

### Author: ![kuaza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuaza/32/264151_2.png) [@kuaza](https://meta.discourse.org/u/kuaza)
#### Post date: [2월 25, 2025, 10:16오후 UTC](https://meta.discourse.org/t/how-to-manually-migrate-s3-files-to-local/354469/3 "2025-02-25T22:16:08Z")

</div>

이 작업은 코드 한 줄로만 가능할 것 같습니다. 로드맵에 추가하는 것이 좋은 아이디어일 수 있습니다. 로컬에서 S3로, S3에서 로컬로의 전환을 코드 한 줄만으로 쉽게 수행할 수 있어야 합니다. 바쁘실 거라는 점은 잘 알고 있지만, 향후 유용할 수 있으므로 목록에 추가해 주시면 좋겠습니다.

---

<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: [3월 27, 2025, 10:16오후 UTC](https://meta.discourse.org/t/how-to-manually-migrate-s3-files-to-local/354469/4 "2025-03-27T22:16:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
