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

How do you enable read-only mode? Through the button on the website?

I’ve done something similar recently and read-only mode did stick.