IExtObjectContainer.

Backup(IStorage, string) Method

Summary

backs up a database file of an open ObjectContainer.

Syntax

void Backup(IStorage targetStorage, string path)

Remarks

backs up a database file of an open ObjectContainer.

While the backup is running, the ObjectContainer can continue to be used. Changes that are made while the backup is in progress, will be applied to the open ObjectContainer and to the backup.

While the backup is running, the ObjectContainer should not be closed.

If a file already exists at the specified path, it will be overwritten.

This method is intended for cross-storage backups, i.e. backup from an in-memory database to a file.

Parameters

Name Type Description
targetStorage IStorage the Db4objects.Db4o.IO.IStorage to be used for backup
path string a fully qualified path

Return Value

Type Description
void