List the contents of a backup file for a specified database name.
void mco_backup_list_db_name(
/*IN*/ const char *db_name,
/*IN*/ const char *file_name,
/*OUT*/ mco_size_t *backup_list_size,
/*OUT*/ mco_backup_info_t **backup_list,
/*IN*/ char *err_buf,
/*IN-OUT*/ unsigned int *err_buf_sz
);
db_name
file_name
backup_list_size
backup_list
mco_backup_info_t descriptors. The memory is allocated internally
and must be freed by the caller using mco_sys_free().err_buf
err_buf_sz
err_buf. On output: number of characters written. If NULL, the function returns
MCO_E_ILLEGAL_PARAM.This function reads the specified backup file and returns a list of backup records that match the given
db_name. Each record includes metadata such asname,type,label, timestamp, and size.Unlike
mco_backup_list(), this function allows filtering by database name, which is useful when a single backup file contains records from multiple databases.The returned array must be explicitly deallocated using
mco_sys_free()to avoid memory leaks.See Incremental Backup and Restore for more details.
MCO_S_OK
MCO_E_DISK_OPEN
MCO_E_ILLEGAL_PARAM
db_name, file_name, or err_buf_sz is NULL).MCO_E_BACKUP