# DB backup config error

**URL:** <https://meta.discourse.org/t/db-backup-config-error/100604>\
**Category:** Self-hosting\
**Created:** [October 27, 2018, 4:49am UTC](https://meta.discourse.org/t/db-backup-config-error/100604 "2018-10-27T04:49:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [October 29, 2018, 5:40pm UTC](https://meta.discourse.org/t/db-backup-config-error/100604/5 "2018-10-29T17:40:48Z")

</div>

> [@netpositive](#):
>
> If I manually run the pg\_dump command inside the container then it works flawlessly

You could try running the same command Discourse uses for dumps. You can get it by executing the following inside the container:

```plaintext
rails c
BackupRestore::Backuper.new(Discourse.system_user.id, {}).send(:pg_dump_command)

```

---

_[View the full topic](https://meta.discourse.org/t/db-backup-config-error/100604)._
