# How to backup Docker discourse from command-line before rebuilding broken Discourse?

**URL:** <https://meta.discourse.org/t/how-to-backup-docker-discourse-from-command-line-before-rebuilding-broken-discourse/31052>\
**Category:** Support\
**Created:** [14 Julio, 2015 20:20 UTC](https://meta.discourse.org/t/how-to-backup-docker-discourse-from-command-line-before-rebuilding-broken-discourse/31052 "2015-07-14T20:20:14Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [22 Mayo, 2019 15:53 UTC](https://meta.discourse.org/t/how-to-backup-docker-discourse-from-command-line-before-rebuilding-broken-discourse/31052/7 "2019-05-22T15:53:56Z")

</div>

> [@BobbyZopfan](#):
>
> Is there a way to create a backup from SSH Terminal of my forum/site?

Yes there is. SSH to your server, and run the following:

```plaintext
cd /var/discourse
./launcher enter app
discourse backup

```

> [@BobbyZopfan](#):
>
> If my site is half broken (some pages open and some not), should I run the setup again, will my contents will be intact or they’d be thrown away once I run the setup or rebuild the app?

Running `./discourse-setup` or `./launcher rebuild app` are both safe, neither will throw your data away, they solely modify the application.

---

_[View the full topic](https://meta.discourse.org/t/how-to-backup-docker-discourse-from-command-line-before-rebuilding-broken-discourse/31052)._
