Holds the information needed to perform backup tasks using the DBTools library.
typedef struct a_backup_db
Member name | Type | Description |
---|---|---|
backup_database |
a_bit_field |
Back up the database file. Set TRUE by dbbackup -d option. |
backup_interrupted |
char |
Indicates that the operation was interrupted when non-zero. |
backup_logfile |
a_bit_field |
Back up the transaction log file. Set TRUE by dbbackup -t option. |
chkpt_log_type |
char |
Control copying of checkpoint log. Must be one of BACKUP_CHKPT_LOG_COPY, BACKUP_CHKPT_LOG_NOCOPY, BACKUP_CHKPT_LOG_RECOVER, BACKUP_CHKPT_LOG_AUTO, or BACKUP_CHKPT_LOG_DEFAULT. Set by dbbackup -k option. |
confirmrtn |
MSG_CALLBACK |
Address of a confirmation request callback routine or NULL. |
connectparms |
const char * |
Parameters needed to connect to the database. They take the form of connection strings, such as the following: "UID=DBA;PWD=sql;DBF=demo.db". The database server would be started by the connection string START parameter. For example: "START=c:\SQLAny12\bin32\dbeng12.exe". A full example connection string including the START parameter: "UID=DBA;PWD=sql;DBF=demo.db;START=c:\SQLAny12\bin32\dbeng12.exe". |
errorrtn |
MSG_CALLBACK |
Address of an error message callback routine or NULL. |
hotlog_filename |
const char * |
File name for the live backup file. Set by dbbackup -l option. |
msgrtn |
MSG_CALLBACK |
Address of an information message callback routine or NULL. |
no_confirm |
a_bit_field |
Operate without confirmation. Set TRUE by dbbackup -y option. |
output_dir |
const char * |
Path to the output directory for backups, for example: "c:\backup". |
page_blocksize |
a_sql_uint32 |
Number of pages in data blocks. If set to 0, then the default is 128. Set by dbbackup -b option. |
progress_messages |
a_bit_field |
Display progress messages. Set TRUE by dbbackup -p option. |
quiet |
a_bit_field |
Operate without printing messages. Set TRUE by dbbackup -q option. |
rename_local_log |
a_bit_field |
Rename the local backup of the transaction log. Set TRUE by dbbackup -n option. |
rename_log |
a_bit_field |
Rename the transaction log. Set TRUE by dbbackup -r option. |
server_backup |
a_bit_field |
Perform backup on server using BACKUP DATABASE. Set TRUE by dbbackup -s option. |
statusrtn |
MSG_CALLBACK |
Address of a status message callback routine or NULL. |
truncate_log |
a_bit_field |
Delete the transaction log. Set TRUE by dbbackup -x option. |
version |
unsigned short |
DBTools version number (DB_TOOLS_VERSION_NUMBER). |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |