# Backup failed due to PG/SQL errors

**URL:** <https://meta.discourse.org/t/backup-failed-due-to-pg-sql-errors/173062>\
**Category:** Self-hosting\
**Created:** [December 12, 2020, 3:59am UTC](https://meta.discourse.org/t/backup-failed-due-to-pg-sql-errors/173062 "2020-12-12T03:59:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [December 17, 2020, 8:06am UTC](https://meta.discourse.org/t/backup-failed-due-to-pg-sql-errors/173062/8 "2020-12-17T08:06:21Z")

</div>

> [@wincenworks](#):
>
> `2020-12-13 09:23:51.363 UTC [1583] FATAL: database files are incompatible with server`

The line above seems to be the root problem @wincenworks

I cannot tell you what to do, but if I were you @wincenworks , I would install Discourse from scratch; and before building the container, I would set your template(s) to use PG10.

Then after you get that new instance up and running, then you can try to restore your Discourse instance from your current PG10 backup, from the command line (not the UI) inside your container.

HTH.

---

_[View the full topic](https://meta.discourse.org/t/backup-failed-due-to-pg-sql-errors/173062)._
