Library Version 12.1.6.2

New Hotbackup Interface
Prev | Chapter 12. Upgrading Berkeley DB 11.2.5.2 applications to Berkeley DB 11.2.5.3 | Next

## New Hotbackup Interface

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

- DB_ENV->backup()
- DB_ENV->dbbackup()
- DB_ENV->set_backup_callbacks()
- DB_ENV->set_backup_config()

### 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`

Prev | Up | Next
Configure the Region Size of Heap Databases | Home | Updated JDBC Version