# How to backup and restore a whole /var/discourse app folder?

**URL:** https://meta.discourse.org/t/how-to-backup-and-restore-a-whole-var-discourse-app-folder/152598
**Category:** Self-hosting
**Created:** [25 במאי,‏ 2020,‏ 10:35am UTC](https://meta.discourse.org/t/how-to-backup-and-restore-a-whole-var-discourse-app-folder/152598 "2020-05-25T10:35:13Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![lucasbasquerotto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucasbasquerotto/32/133376_2.png) [@lucasbasquerotto](https://meta.discourse.org/u/lucasbasquerotto)
#### Post date: [18 ביוני,‏ 2020,‏ 5:39pm UTC](https://meta.discourse.org/t/how-to-backup-and-restore-a-whole-var-discourse-app-folder/152598/17 "2020-06-18T17:39:13Z")

</div>

> [@adrelanos](#):
>
> FATAL: data directory “/shared/postgres\_data” has wrong ownership

It seems there is the same issue at:

[https://meta.discourse.org/t/postgresql-12-update/151236/298?u=lucasbasquerotto](https://meta.discourse.org/t/postgresql-12-update/151236/298)

There’s not an answer to this specific issue tough, in the FAQ, but maybe the discourse team add a solution to that, considering that more than 1 person faced it. There is a FAQ about [The source cluster was not shut down cleanly](https://meta.discourse.org/t/postgresql-12-update/151236#the-source-cluster-was-not-shut-down-cleanly), that could be related to your issue.

---

_[View the full topic](https://meta.discourse.org/t/how-to-backup-and-restore-a-whole-var-discourse-app-folder/152598)._
