New Hotbackup Interface

New Functions
Flags Accepted by DB_ENV->backup()
Flags Accepted by DB_ENV->dbbackup()
Enumerations Accepted by DB_ENV->set_backup_config()

Two new functions have been added to the API that perform hotbackups, DB_ENV->backup() and DB_ENV->dbbackup(). DB_ENV->backup() creates a hotbackup of all databases in the specified environment, and DB_ENV->dbbackup() creates a hotbackup of the specified database. The functions DB_ENV->set_backup_callbacks() and DB_ENV->set_backup_config() can be called to customize the behavior of hotbackup. Note that this interface must be used to create a hotbackup on all non-BSD or Unix based systems.

New Functions

Flags Accepted by DB_ENV->backup()

  • DB_BACKUP_CLEAN
  • DB_BACKUP_FILES
  • DB_BACKUP_NO_LOGS
  • DB_BACKUP_SINGLE_DIR
  • DB_BACKUP_UPDATE
  • DB_CREATE
  • DB_EXCL
  • DB_VERB_BACKUP

Flags Accepted by DB_ENV->dbbackup()

  • DB_CREATE
  • DB_EXCL

Enumerations Accepted by DB_ENV->set_backup_config()

  • DB_BACKUP_WRITE_DIRECT
  • DB_BACKUP_READ_COUNT
  • DB_BACKUP_READ_SLEEP
  • DB_BACKUP_SIZE