# When restoring a backup, the 'disable email' will be set to non-staff from no

**URL:** https://meta.discourse.org/t/when-restoring-a-backup-the-disable-email-will-be-set-to-non-staff-from-no/115143
**Category:** Bug
**Created:** [15.Апрель.2019 18:42:06 UTC](https://meta.discourse.org/t/when-restoring-a-backup-the-disable-email-will-be-set-to-non-staff-from-no/115143 "2019-04-15T18:42:06Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [15.Апрель.2019 20:07:35 UTC](https://meta.discourse.org/t/when-restoring-a-backup-the-disable-email-will-be-set-to-non-staff-from-no/115143/3 "2019-04-15T20:07:35Z")

</div>

That’s not a bug. It’s a feature that was added a long time ago, but it was broken for as long as I can remember. 🙂

I fixed it two months ago in [FIX: Outgoing emails were not disabled after restoring backup · discourse/discourse@dc961fe · GitHub](https://github.com/discourse/discourse/commit/dc961fecb9c28be5e8f161a82616148be6a9facc#diff-f59428cd341969776f9ebf8c157b83c7)

You can disabled that behavior when you restore from the command line:

```plaintext
discourse restore --disable_emails=false <filename>

```

---

_[View the full topic](https://meta.discourse.org/t/when-restoring-a-backup-the-disable-email-will-be-set-to-non-staff-from-no/115143)._
