# 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 mei 2020 om 10:35 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:** 13

<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: [27 mei 2020 om 13:32 UTC](https://meta.discourse.org/t/how-to-backup-and-restore-a-whole-var-discourse-app-folder/152598/13 "2020-05-27T13:32:26Z")

</div>

> [@RGJ](#):
>
> You’re going down a rabbit hole.

Maybe even a 🐀 🐀🐀 hole.

> [@RGJ](#):
>
> If I were you I would focus on solving your original problem with backup/restore.

Agreed… for sure…

@adrelanos

There are no “issues” with the backup-restore process. See this “praise” yours truly @neounix penned a few months back on this topic:

> [@The Brilliant Discourse Restore Process](https://meta.discourse.org/t/the-brilliant-discourse-restore-process/145910):
>
> In the last month, we have performed countless migration tests in various scenarios and docker containers. In addition, I have performed even more Discourse DB restores from one server to another. Based on extensive recovery testing, the Discourse restore process is brilliant and has worked flawlessly in every situation from the command line. For example, we use a very primitive script for this, which I store in my /shared/neo/bin directory: #!/bin/bash echo "cd /var/www/discourse" cd /var/…

---

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