Note
This view is available starting with V4.0.0.
Overview
Displays the task-level backup tasks for all tenants in the cluster. Each task record corresponds to a backup set. There is a one-to-one correspondence between task records and job records.
Columns
Field Name |
Field Name |
Field Name |
Field Name |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| TASK_ID | bigint(20) | NO | The task ID of the backup task at the TASK level, which corresponds to the task of a backup set. |
| JOB_ID | bigint(20) | NO | Job ID of the task. |
| INCARNATION | bigint(20) | NO | Indicates the number of forks after the database is flashed back |
| 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: None: No encryption. Password: Protected only by password. Password Encryption: Encrypted and protected by password. Transparent Encryption: Encrypted by TDE. Dual mode Encryption: Encrypted by TDE and protected by password. Currently, only None and Password modes are supported. |
| 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 backup completion |
| MAJOR_TURN_ID | bigint(20) | NO | Round of Baseline Data Backup Completion |
| DATA_PROGRESS | decimal(26,2) | NO | The backup progress of data backup. The calculation method is Number of completed macroblocks / Total number of macroblocks, and the result is rounded to two decimal places. For example, 87.65 indicates that the current progress is 87.65%.
NoteThis field is available starting with V4.2.1 BP3. |
Sample query
Query the backup progress of all tenant's task-level backup tasks in the cluster.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_TASKS\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-07-29 15:08:41.221174
END_TIMESTAMP: NULL
STATUS: BACKUP_DATA_MINOR
START_SCN: 1722236939903501364
END_SCN: 0
USER_LS_START_SCN: 1722236951143670797
ENCRYPTION_MODE: NONE
PASSWD:
INPUT_BYTES: 90622181
OUTPUT_BYTES: 7451552
OUTPUT_RATE_BYTES: 0.0000
EXTRA_META_BYTES: 0
TABLET_COUNT: 605
FINISH_TABLET_COUNT: 6
MACRO_BLOCK_COUNT: 104
FINISH_MACRO_BLOCK_COUNT: 43
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
DATA_PROGRESS: 41.35
1 row in set
