By default the defragmentation process uses the storage from the db4o configuration for both database files, the backup and the new defragmented database file. If you want to have different storage implementations you can specify a different storage for the backup-file. This way the new defragmented database-file uses the storage from the database-configuration and the backup-file uses the back-up storage.
DefragmentConfig config = new DefragmentConfig("database.db4o"); config.BackupStorage(new FileStorage()); Defragment.Defrag(config);
Dim config As New DefragmentConfig("database.db4o") config.BackupStorage(New FileStorage()) Defragment.Defrag(config)