samnazarko sought guidance on migrating a Discourse instance between Docker servers on Ubuntu 14.04, specifically asking how to identify the correct container for docker save and whether docker load would preserve the /var/discourse configuration. After encountering errors with container IDs, samnazarko questioned if using the Discourse admin panel backup and restore feature was a safe alternative. DeanMarkTaylor initially suggested the inquiry was similar to an existing topic, though samnazarko noted it did not resolve their specific issues. DeanMarkTaylor later clarified that while the backup method is safe, it only restores the database, attachments, and images, excluding any custom code changes, provided the “content” option is selected. Ultimately, samnazarko confirmed that the backup and restore method successfully resolved the migration.
I am trying to migrate my Discourse instance from one Ubuntu 14.04 server running Docker to another and could not find a lot of documentation about this.
I have installed Docker on the new server, but I am not sure how to migrate the old forum. I know I can do docker save. But I have some questions:
How do I know the name of the container to run ‘docker save’ on?
Will docker load < sometar on the other box recreate /var/discourse and all the YAML so I can just run ./launcher app rebuild and ./launcher app start?
I was able to get the container id with ps -a when it is running, but docker save gives me ‘No such container id’. Is it safe to just take a backup from the Discourse admin panel and restore that way?
Considering the topic was extremely similar it might have been best to continue and as for more details in the other topic.
(bit late now - I don’t know).
Wait and see what the moderators do
But yes it should always be safe to make a backup and restore it - that’s what backups are for.
Just make sure you include “content”.
The backups won’t include any code changes, just DB, attachments and images.