BUGFIX: backup/restore operations keep track of the read-only mode status