# How to restore backup tar.gz file from console command?

**URL:** <https://meta.discourse.org/t/how-to-restore-backup-tar-gz-file-from-console-command/44940>\
**Category:** Support\
**Created:** [2016 年 5 月 28 日午前 10:54 UTC](https://meta.discourse.org/t/how-to-restore-backup-tar-gz-file-from-console-command/44940 "2016-05-28T10:54:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2018 年 1 月 6 日午後 11:49 UTC](https://meta.discourse.org/t/how-to-restore-backup-tar-gz-file-from-console-command/44940/8 "2018-01-06T23:49:50Z")

</div>

I can confirm that from inside a production container you want to run `discourse restore`, not script/discourse.

Also, you can run it without the filename and it’ll suggest the available files, which makes it easy to copy and paste the filename.

---

_[View the full topic](https://meta.discourse.org/t/how-to-restore-backup-tar-gz-file-from-console-command/44940)._
