# How to backup Discourse Docker Container?

**URL:** https://meta.discourse.org/t/how-to-backup-discourse-docker-container/148016
**Category:** Self-hosting
**Created:** [April 14, 2020, 8:44pm UTC](https://meta.discourse.org/t/how-to-backup-discourse-docker-container/148016 "2020-04-14T20:44:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![noorqureshi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noorqureshi/32/121054_2.png) [@noorqureshi](https://meta.discourse.org/u/noorqureshi)
#### Post date: [April 14, 2020, 8:44pm UTC](https://meta.discourse.org/t/how-to-backup-discourse-docker-container/148016/1 "2020-04-14T20:44:34Z")

</div>

I’ve discourse installed on VPS but I wanna shift it to a dedicated server and it has some other sites running too (CentOS 7) I installed the docker already.

What I wanna do it backup my correct running discourse and restore somewhere there without much of the re-configuration.

On my VPS it’s running on

**Ports:** 0.0.0.0:80-\>80/tcp, 0.0.0.0:443-\>443/tcp

But on my dedicated server, it has multiple sites already installed so it would probably give me bind error but how do I backup and restore?

How can I push my backup container to [hub.docker.com](http://hub.docker.com) and restore through pulling that is it possible? Little confused!

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [April 14, 2020, 8:47pm UTC](https://meta.discourse.org/t/how-to-backup-discourse-docker-container/148016/2 "2020-04-14T20:47:59Z")

</div>

You backup the database, and restore the database. You don’t mess with the docker container. 🕶
