# Restore a backup from the command line

**URL:** https://meta.discourse.org/t/restore-a-backup-from-the-command-line/108034
**Category:** Self-Hosting
**Tags:** how-to
**Created:** [January 31, 2019, 4:36pm UTC](https://meta.discourse.org/t/restore-a-backup-from-the-command-line/108034 "2019-01-31T16:36:07Z")
**Posts on this page:** 1
**Showing post:** 71

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [May 18, 2025, 1:07pm UTC](https://meta.discourse.org/t/restore-a-backup-from-the-command-line/108034/71 "2025-05-18T13:07:37Z")

</div>

> [@Create, download, and restore a backup of your Discourse database](https://meta.discourse.org/t/create-download-and-restore-a-backup-of-your-discourse-database/122710/1):
>
> The restore process automatically sets the `disable emails` setting to “non-staff”, so emails aren’t sent to your site’s users until you’re ready.

The easiest way to remove the banner is to enable emails in the site settings

 ![Disable emails](https://global.discourse-cdn.com/meta/original/4X/3/7/a/37a1ab8cce325c0bb3b474b2c9fe5f3bebcde976.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/restore-a-backup-from-the-command-line/108034)._
