# 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:** [Julho 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:** 1

<div class="post-metadata">

**Author:** ![trudat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trudat/32/104354_2.png) [@trudat](https://meta.discourse.org/u/trudat)\
**Post date:** [Julho 14, 2015, 8:20pm UTC](https://meta.discourse.org/t/how-to-backup-docker-discourse-from-command-line-before-rebuilding-broken-discourse/31052/1 "2015-07-14T20:20:14Z")

</div>

I set up a Discourse site, and a couple days later it suddenly stopped working - tries to load for a couple minutes then “This web page is not available - ERR\_CONNECTION\_RESET”. It might be a RAM issue.  
I am ready to use the launcher scripts to rebuild the container. But if possible I would like to backup the content that was added to the site so far.  
Is there a preferred way to backup the DB and/or uploaded files manually from the command line?  
I’ve been unable to track down the pgsql credentials in order to do a pgdump.

---

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