# 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:** [July 14, 2015, 8:20pm 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:** 5

<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: [May 18, 2017, 7:07pm UTC](https://meta.discourse.org/t/how-to-backup-docker-discourse-from-command-line-before-rebuilding-broken-discourse/31052/5 "2017-05-18T19:07:56Z")

</div>

I haven’t confirmed, but I’d assume there is a backup script just as there is a restore.

> [@Is there any way to restore your site from backup in the terminal?](https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377/2):
>
> Yes. They’re stored in public/backups/default/. Just run the following command (in the discourse directory) script/discourse restore \<filename.of.the.backup.tar.gz\>

---

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