Can I restore backups from older Discourse versions?

AI 生成的摘要

In a discussion about restoring backups from older Discourse versions, gkln asks whether backups can be restored if the source and target installations are on different versions, particularly after a system failure. sam confirms that previous versions can be restored via the web UI. acinonyxjubatus inquires about restoring a backup from another Discourse site, noting their backup was created for a different domain and gets stuck at 9% during upload. codinghorror clarifies that backups from pre-1.0 versions (circa 2013–2014) are too old to be compatible, but backups from versions less than five years old should generally work. The consensus is that version compatibility is important, but not strictly limited to exact matches unless the backup is extremely outdated.

Hi,

I’m new to Discourse and plan to use it in production very soon.

I have a question regarding backups and their relation to the platform version. I read in this topic that in order to restore a backup the source and target Discourse installs must be on the same version. How strong is this constraint?

I’m thinking about the scenario where, for whatever reason, I loose my current Discourse installation (e.g., after a disk drive failure) and need to reinstall it.

As I understand it, the bootstrap process will fetch a new Discourse version. Will I be able to restore backups from the previous installation? If not, do I need to fix the version parameter to make sure I always run the same Discourse version?

Thank you.

Yes, you can restore previous versions via the web ui

Hi!
Is it possible to restore backup from another discourse site?
I have backup - Dumped from database version 9.5.7 and it was created for other domain name
Now when I upload archive it’s just stuck on 9%.

A pre 1.0 version is ancient, circa 2013 or early 2014. I would not expect that to work.

But yes as long as the version isn’t 5 years old, you should be able to restore the backup! :wink: