# Read-only flag gets reset during backup and restore to new server

**URL:** https://meta.discourse.org/t/read-only-flag-gets-reset-during-backup-and-restore-to-new-server/63266
**Category:** Support
**Created:** [May 24, 2017, 9:06am UTC](https://meta.discourse.org/t/read-only-flag-gets-reset-during-backup-and-restore-to-new-server/63266 "2017-05-24T09:06:32Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [May 24, 2017, 1:27pm UTC](https://meta.discourse.org/t/read-only-flag-gets-reset-during-backup-and-restore-to-new-server/63266/5 "2017-05-24T13:27:51Z")

</div>

After a bit of searching…

> [@Stuck in 'Read Only' Mode](https://meta.discourse.org/t/stuck-in-read-only-mode/42820/4):
>
> Discourse.disable\_readonly\_mode(Discourse::USER\_READONLY\_MODE\_KEY)

Try opening a rails console (`./launcher enter app`, `rails c`) and running `Discourse.enable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)`.  
I haven’t tried this, so have a backup ready, but it’s a very educated guess, given the quote above ;-))

---

_[View the full topic](https://meta.discourse.org/t/read-only-flag-gets-reset-during-backup-and-restore-to-new-server/63266)._
