# 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:** Product Support\
**Created:** [24 Mayo, 2017 09:06 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:** 3

<div class="post-metadata">

**Author:** ![Henti\_Smith](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@Henti\_Smith](https://meta.discourse.org/u/Henti_Smith)\
**Post date:** [24 Mayo, 2017 12:47 UTC](https://meta.discourse.org/t/read-only-flag-gets-reset-during-backup-and-restore-to-new-server/63266/3 "2017-05-24T12:47:47Z")

</div>

Hey Felix,

It’s via command line as it’ll be automated in scripts or CMS.

`sudo /usr/bin/docker exec -i app discourse enable_readonly`

H

---

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