# Is there any way to restore your site from backup in the terminal?

**URL:** <https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377>\
**Category:** Support\
**Created:** [2016 年4 月 11 日 06:31 UTC](https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377 "2016-04-11T06:31:25Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

作者： ![mrded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrded/32/62438_2.png) [@mrded](https://meta.discourse.org/u/mrded)\
发布日期： [2018 年8 月 15 日 11:33 UTC](https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377/13 "2018-08-15T11:33:27Z")

</div>

You can also do it directly to Postgres:

```
dropdb dbname
createdb dbname
gunzip -c filename.gz | psql dbname

```

---

_[View the full topic](https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377)._
