Overview
Displays the historical records of task-level backup tasks for all tenants in the cluster.
Columns
Field Name |
Field Name |
Whether can be NULL |
Field Name |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| TASK_ID | bigint(20) | NO | Task-level backup task ID, corresponding to the task of a backup set. |
| JOB_ID | bigint(20) | NO | The Job ID to which this task belongs. |
| INCARNATION | bigint(20) | NO | Indicates the number of forks after a flashback database operation. |
| BACKUP_SET_ID | bigint(20) | NO | The ID of the backup set corresponding to this task. |
| START_TIMESTAMP | timestamp(6) | NO | Start time of the task. |
| END_TIMESTAMP | timestamp(6) | NO | End time of the task. |
| STATUS | varchar(4096) | NO | Backup Status |
| START_SCN | bigint(20) unsigned | NO | SCN at the Start of Backup |
| END_SCN | bigint(20) unsigned | NO | SCN at the End of Backup |
| USER_LS_START_SCN | bigint(20) unsigned | NO | SCN of Backup Log Stream META |
| ENCRYPTION_MODE | varchar(4096) | YES | Encryption mode:
The following modes are supported: None and Password. |
| PASSWD | varchar(4096) | YES | password |
| INPUT_BYTES | bigint(20) | YES | Input Bytes |
| OUTPUT_BYTES | bigint(20) | YES | Output Bytes |
| OUTPUT_RATE_BYTES | decimal(28,4) | NO | Output Bytes Per Second |
| EXTRA_META_BYTES | bigint(20) | YES | Extra Bytes |
| TABLET_COUNT | bigint(20) | YES | Total Tablets |
| FINISH_TABLET_COUNT | bigint(20) | YES | Total Backed-Up Tablets |
| MACRO_BLOCK_COUNT | bigint(20) | YES | Number of Macroblocks |
| FINISH_MACRO_BLOCK_COUNT | bigint(20) | YES | Number of Macroblocks Backed Up |
| FILE_COUNT | bigint(20) | YES | Number of Backup Files |
| META_TURN_ID | bigint(20) | YES | Backup Meta Cycle |
| DATA_TURN_ID | bigint(20) | YES | Backup Cycle of DATA |
| RESULT | bigint(20) | YES | Backup Error Code Result |
| COMMENT | varchar(4096) | YES | Error Code Description |
| PATH | varchar(4096) | YES | Backup Path |
| MINOR_TURN_ID | bigint(20) | NO | Round of Minor Compaction Data Backup Completion |
| MAJOR_TURN_ID | bigint(20) | NO | Round of Baseline Data Backup Completion |
Sample query
The sys tenant queries the task history of all tenants in the cluster.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_TASK_HISTORY\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
TASK_ID: 1
JOB_ID: 1
INCARNATION: 1
BACKUP_SET_ID: 1
START_TIMESTAMP: 2024-05-09 17:43:38.705117
END_TIMESTAMP: 2024-05-09 17:45:52.737037
STATUS: COMPLETED
START_SCN: 1715247825077980000
END_SCN: 1715247952707346000
USER_LS_START_SCN: 1715247835736673000
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 175358314
OUTPUT_BYTES: 18706196
OUTPUT_RATE_BYTES: 139565.2319
EXTRA_META_BYTES: 0
TABLET_COUNT: 668
FINISH_TABLET_COUNT: 668
MACRO_BLOCK_COUNT: 83
FINISH_MACRO_BLOCK_COUNT: 83
FILE_COUNT: 0
META_TURN_ID: 1
DATA_TURN_ID: 0
RESULT: 0
COMMENT:
PATH: file:///home/admin/oceanbase/backupdata
MINOR_TURN_ID: 1
MAJOR_TURN_ID: 1
1 row in set
References
View the history of a backup job: CDB_OB_BACKUP_JOB_HISTORY
View backup jobs for all tenants: CDB_OB_BACKUP_JOBS
View the execution progress of backup tasks: CDB_OB_BACKUP_TASKS
For more information about how to view backup results, see View data backup results.