Retrieve the current status of incremental backup processing for a database.
MCO_RET mco_backup_incremental_processing_get(
/*IN*/ mco_db_h connection,
/*OUT*/ mco_bool *enabled
);
connection
enabled
MCO_YES — incremental backup processing is enabled,MCO_NO — incremental backup processing is disabled.This function checks whether incremental backup processing is currently enabled for the specified database.
Incremental backup must be explicitly enabled at database creation time by setting the
MCO_DB_INCREMENTAL_BACKUP_ENABLEDflag in the database mode mask. This function returns the runtime status of that configuration.Note that even if incremental backup is enabled, timestamping (required for tracking page modifications) may be activated only after the first snapshot backup is created.
See Incremental Backup and Restore for more details.
MCO_S_OK
MCO_E_ILLEGAL_PARAM
NULL connection or enabled pointer).MCO_E_BACKUP_INVALID_PARAM
MCO_DB_INCREMENTAL_BACKUP_ENABLED flag was not
set at database creation).
{
mco_db_h con;
mco_bool enabled;
MCO_RET rc;
rc = mco_db_connect("mydb", &con);
if (rc != MCO_S_OK) {
/* handle connection error */
}
/* ... */
rc = mco_backup_incremental_processing_get(con, &enabled);
if (rc == MCO_S_OK) {
if (enabled == MCO_YES) {
printf("Incremental backup is enabled\n");
} else {
printf("Incremental backup is disabled\n");
}
}
}