# How to restore data by ssh?

**URL:** https://meta.discourse.org/t/how-to-restore-data-by-ssh/77439
**Category:** Support
**Created:** [8. Januar 2018 um 01:38 UTC](https://meta.discourse.org/t/how-to-restore-data-by-ssh/77439 "2018-01-08T01:38:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)
#### Post date: [8. Januar 2018 um 01:38 UTC](https://meta.discourse.org/t/how-to-restore-data-by-ssh/77439/1 "2018-01-08T01:38:06Z")

</div>

I know there are two ways to restore the data from webpage view.

- But downloading such file seems to be not a very good idea for poor internet conditions. Because we will get a download link from email, the link can only be clicked once.

I know there is a .tar.gz file in

> /var/discourse/shared/standalone/backups/default

which is just the restoring data.

* * *

I’m wondering how I can restore the whole data in ssh?

---

<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: [8. Januar 2018 um 02:15 UTC](https://meta.discourse.org/t/how-to-restore-data-by-ssh/77439/2 "2018-01-08T02:15:25Z")

</div>

> [@Backup discourse from the command line](https://meta.discourse.org/t/backup-discourse-from-the-command-line/64364):
>
> bookmark This guide covers how to back up and restore your Discourse site using command line tools, specifically designed for self-hosted environments. person_raising_hand Required user level: Administrator information_source You can use the below placeholders to automatically fill out the command line prompts in this guide: Backing up To create a backup of your Discourse site, follow these steps: Enter the container: ./launcher enter app Run the backup: discourse backup…

---

<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: [8. Januar 2018 um 02:56 UTC](https://meta.discourse.org/t/how-to-restore-data-by-ssh/77439/3 "2018-01-08T02:56:16Z")

</div>


