# 새 서버로 백업 복원 후 내부 링크가 모두 깨졌습니다

**URL:** https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829
**Category:** Support
**Created:** [6월 24, 2020, 3:48오후 UTC](https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829 "2020-06-24T15:48:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![meriksson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meriksson/32/66712_2.png) [@meriksson](https://meta.discourse.org/u/meriksson)
#### Post date: [6월 24, 2020, 3:48오후 UTC](https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829/1 "2020-06-24T15:48:34Z")

</div>

최근에 포럼을 한 서버에서 다른 서버로 이전했습니다. 며칠 후에 모든 내부 링크가 변경되어 깨진 링크가 된 것을 발견했습니다.

완전히 확신은 하지 못하지만, 제가 생각하기에 다음과 같은 일이 발생한 것 같습니다:

포럼은 [forum.example.org](http://forum.example.org)에 위치해 있습니다. 하지만 새 서버로 마이그레이션을 수행할 때, 기존 인스턴스를 내리고 사용자에게 불편을 끼치지 않고 테스트할 수 있도록 처음에는 새 인스턴스를 [temp.example.org](http://temp.example.org)으로 설정했습니다. 새 인스턴스가 정상적으로 작동하는 것을 확인한 후, 이를 [forum.example.org](http://forum.example.org)으로 다시 구성하고 DNS 변경 등을 수행했습니다.

이제 내부 링크가 변경된 것을 발견했습니다. [https://forum.example.org/t/example-topic/1과](https://forum.example.org/t/example-topic/1%EA%B3%BC) 같은 기존 링크가 [https://temp.example.org/t/example-topic/1](https://forum.example.org/t/example-topic/1)으로 변경되었습니다. [temp.example.org](http://temp.example.org)은 존재하지 않으므로 이는 깨진 링크를 의미합니다. 제가 알기로는 데이터베이스의 모든 링크에 대해 이러한 변경이 이루어진 것으로 보입니다.

여기서 무슨 일이 일어난 것일까요? 가져오기/복원 과정에서 모든 링크가 당시의(임시) 도메인 이름을 포함하도록 변경된 것일까요?

이를 어떻게 되돌릴 수 있을까요? 즉, 모든 링크의 도메인을 원래 이름으로 변경하는 방법은 무엇일까요?

---

<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: [6월 24, 2020, 3:50오후 UTC](https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829/2 "2020-06-24T15:50:40Z")

</div>

이 howto에 설명된 대로 주제를 올바른 URL로 다시 매핑할 수 있습니다:  
[Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098)

`discourse remap temp.example.org forum.example.org`와 같은 명령을 실행하면 됩니다.

---

<div class="post-metadata">

### Author: ![meriksson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meriksson/32/66712_2.png) [@meriksson](https://meta.discourse.org/u/meriksson)
#### Post date: [6월 24, 2020, 3:54오후 UTC](https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829/3 "2020-06-24T15:54:55Z")

</div>

정말 감사합니다!

---

<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: [7월 24, 2020, 3:54오후 UTC](https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829/4 "2020-07-24T15:54:58Z")

</div>

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