# 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:** [April 11, 2016, 6:31am 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:** 2

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 11, 2016, 9:46am UTC](https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377/2 "2016-04-11T09:46:42Z")

</div>

> [@Ankhamax](#):
>
> Is it possible?

Yes.

> [@Ankhamax](#):
>
> If yes, where do discourse save or store the backups that I executed from the admin panel?

They’re stored in `public/backups/default/`.

> [@Ankhamax](#):
>
> Is there any guide on how to restore the site from backup?

Just run the following command (in the `discourse` directory)

```plaintext
script/discourse restore <filename.of.the.backup.tar.gz>

```

---

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