Berkeley DB Reference Version 5.3.33

DB_ENV->set_backup_config()

#include <db.h>
 
DB_ENV->set_backup_config(DB_ENV, db_backup_config_t option, 
                          u_int32_t value);  

The DB_ENV->set_backup_config() method configures tuning parameters for the hot backup APIs. See the DB_ENV->backup() and DB_ENV->dbbackup() methods for a description of the hot backup APIs.

The DB_ENV->set_backup_config() method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.

The DB_ENV->set_backup_config() method may be called at any time during the life of the application.

The DB_ENV->set_backup_config() method returns a non-zero error value on failure and 0 on success.

Parameters

option

The option parameter identifies the backup parameter to be modified. It must be one of the following:

value

The value parameter sets the configuration value for the option identified by the option parameter. For those options which can only be turned on or off, this parameter should be set to 0 for off and 1 for on. Otherwise, set this parameter to an integer value that represents the number of units for which you are configuring the backup APIs.

Class

DB_ENV,

See Also

Database Environments and Related Methods, DB_ENV->get_backup_config(), DB_ENV->backup(), DB_ENV->dbbackup()