# How to migrate the discourse container to another machine

**URL:** https://meta.discourse.org/t/how-to-migrate-the-discourse-container-to-another-machine/124802
**Category:** Support
**Created:** [August 3, 2019, 7:35pm UTC](https://meta.discourse.org/t/how-to-migrate-the-discourse-container-to-another-machine/124802 "2019-08-03T19:35:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Karma\_Frenzoid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karma_frenzoid/32/150014_2.png) [@Karma\_Frenzoid](https://meta.discourse.org/u/Karma_Frenzoid)
#### Post date: [August 3, 2019, 7:35pm UTC](https://meta.discourse.org/t/how-to-migrate-the-discourse-container-to-another-machine/124802/1 "2019-08-03T19:35:11Z")

</div>

Hello! I’ve been wondering, if i ever need to change my VPS, and i want to migrate my discourse forum to another machine, do i just make an image of the container, and launch it on the new vps?

Or is there anything else that needs to be done?

Best regards!

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [August 4, 2019, 3:20am UTC](https://meta.discourse.org/t/how-to-migrate-the-discourse-container-to-another-machine/124802/2 "2019-08-04T03:20:51Z")

</div>

The two things you need to save to move a forum to a new server are:

1. Save a backup from the admin section
2. Copy the `app.yml` file

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 4, 2019, 7:35am UTC](https://meta.discourse.org/t/how-to-migrate-the-discourse-container-to-another-machine/124802/3 "2019-08-04T07:35:59Z")

</div>

Surely this is covered by an existing #faq topic @tshenry?

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [August 5, 2019, 9:36pm UTC](https://meta.discourse.org/t/how-to-migrate-the-discourse-container-to-another-machine/124802/4 "2019-08-05T21:36:31Z")

</div>

Indeed! We have a couple methods that are documented:

> [@Move a Discourse site to another VPS with rsync](https://meta.discourse.org/t/moving-discourse-docker-install-to-other-vps-with-1-1-sync/43812):
>
> This method is different than restoring file in UI. Maybe there is a more downtime but it’s simpler for linux folks without Discourse knowledge and it’s easy to automate. Prepare new VPS First, prepare our new Current Ubuntu LTS VPS with empty Discourse dir, OS upgrade and Docker install sudo mkdir -p /var/discourse sudo apt-get update sudo apt-get dist-upgrade wget -qO- https://get.docker.com/ | sh Then, make sure that we are on latest installed kernel and other libraries by just restarting …

> [@Move your Discourse Instance to a Different Server](https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721):
>
> bookmark This is a guide for moving your Discourse instance from one server to another, including all settings and data. This guide applies to self-hosted Discourse instances using Docker. person_raising_hand Required user level: System Administrator warning This procedure involves domain and DNS changes. Ensure you have access to both the source and destination servers. This guide walks you through the process of migrating your Discourse instance from one server to another, ensuring …

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 6, 2019, 1:54am UTC](https://meta.discourse.org/t/how-to-migrate-the-discourse-container-to-another-machine/124802/5 "2019-08-06T01:54:06Z")

</div>


