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.java: 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.java: 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.