You are here: Advanced Features > Backup

Backup

db4o supplies hot backup functionality to backup single-user databases and client-server databases while they are running.

container.Ext().Backup("backup.db4o");
BackupExample.cs: Store a backup while using the database
container.Ext().Backup("backup.db4o")
BackupExample.vb: Store a backup while using the database

Maybe you want to use a other storage system for the backup than the main database. You can specify the storage system for the backup directly:

container.Ext().Backup(new FileStorage(), "advanced-backup.db4o");
BackupExample.cs: Store a backup with storage
container.Ext().Backup(New FileStorage(), "advanced-backup.db4o")
BackupExample.vb: Store a backup with storage

The methods can be called while an object container is open and they will execute with low priority in a dedicated thread, with as little impact on processing performance as possible.