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!
schleifer
(Andrew Schleifer)
August 4, 2019, 3:20am
2
The two things you need to save to move a forum to a new server are:
Save a backup from the admin section
Copy the app.yml
file
3 Likes
Surely this is covered by an existing #faq topic @tshenry ?
2 Likes
tshenry
(Taylor)
August 5, 2019, 9:36pm
4
Indeed! We have a couple methods that are documented:
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 …
In this guide we’ll move an existing Discourse instance on Linode (source) to a new Discourse instance on Digital Ocean (destination), but of course these steps will work on any other cloud providers that support Docker.
If you are using the same domain name and moving servers, you should set the TTL (time to live) on your DNS entry to a very low value in advance of the change. If you are using different domain names, this won’t matter.
Log In and Update
Only admins can perform backu…
4 Likes