# Restore backup without reconfiguring Discourse

**URL:** https://meta.discourse.org/t/restore-backup-without-reconfiguring-discourse/58185
**Category:** Feature
**Created:** [March 1, 2017, 6:37pm UTC](https://meta.discourse.org/t/restore-backup-without-reconfiguring-discourse/58185 "2017-03-01T18:37:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Chopper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chopper/32/57073_2.png) [@Chopper](https://meta.discourse.org/u/Chopper)
#### Post date: [March 1, 2017, 6:37pm UTC](https://meta.discourse.org/t/restore-backup-without-reconfiguring-discourse/58185/1 "2017-03-01T18:37:58Z")

</div>

It will be great if there is a way to restore a backup without reconfiguring the Discourse from the beginning.

For now, the differents steps to **restore a backup from a server to another** are :

* * *

1 - make a backup  
2 - reinstall Discourse with `./discourse-setup` and complete the questions : host, smtp, port etc  
3 - configure SSL  
4 - load the backup

* * *

Why should I complete the step 2 (and 3) if all the data are replace by the backup two minutes laters.

**Proposition :**

The `discourse-setup` script have an option where a backup is passed in parameter to direclty install the Docker and Discourse regarding the backup variables (host, smtp etc)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 2, 2019, 11:08pm UTC](https://meta.discourse.org/t/restore-backup-without-reconfiguring-discourse/58185/15 "2019-05-02T23:08:17Z")

</div>

I believe the best solution is to restore the backup from command line @techAPJ has a #howto for this. Then you can skip the web GUI configuration part entirely.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 4, 2019, 7:49pm UTC](https://meta.discourse.org/t/restore-backup-without-reconfiguring-discourse/58185/30 "2019-05-04T19:49:08Z")

</div>

> [@Chopper](#):
>
> Why should I complete the step 2 (and 3) if all the data are replace by the backup two minutes laters.

They aren’t replaced by the backup. Those settings live in your app.yml which isn’t contained in the backup. The container configuration and the discourse container contents are entirely separate. Hostname, let’s encrypt and plugins are all outside the backup and are used when the container is rebuilt.

The backup holds all the posts, users, attachments, customizations and site settings which can be configured from /admin.
