You are here: Advanced Features > Defragment > Defragmentation Configuration > Disable Read Only Mode

Disable Read Only Mode

By default the back-up database is opened in read only mode. You can disable the read only mode if you want.

DefragmentConfig config = new DefragmentConfig("database.db4o");
config.readOnly(false);

Defragment.defrag(config);
DefragmentationConfigurationExamples.java: Disable readonly on backup