How to backup Discourse + Database from Console?

(Lutz Biermann) #1

Let’s say I want to try a new version of Discourse. For safety reasons I would like to backup everything, so I can do a easy roll-back to the last version. I generally do a “git pull && ./launcher rebuild app” to get the new versions.I only run discourse at my docker installation.

Is it enough enough to stop discourse, tar everything from /var/discourse and /var/lib/docker? Is there a better solution, maybe with docker commands?

(Jeff Atwood) #2

It is generally not possible to downgrade to older Discourse versions.

However taking a full backup before the upgrade should work.