SHOW BACKUP
Descriptionβ
This statement is used to view BACKUP tasks
Syntaxβ
SHOW BACKUP [FROM <db_name>]
[WHERE SnapshotName { LIKE | = } '<snapshot_name>' ]
Parametersβ
1.<db_name>
The name of the database to which the backup task belongs.
2.<snapshot_name>
Backup name.
Return Valueβ
Column | Description |
---|---|
JobId | Unique job id |
SnapshotName | The name of the backup |
DbName | belongs to the database |
State | current stage:
|
BackupObjs | Backed up tables and partitions |
CreateTime | task submission time |
SnapshotFinishedTime | Snapshot completion time |
UploadFinishedTime | Snapshot upload completion time |
FinishedTime | Job finish time |
UnfinishedTasks | Displays unfinished subtask ids during SNAPSHOTING and UPLOADING stages |
Progress | Task progress |
TaskErrMsg | Display task error messages |
Status | If the job fails, display the failure message |
Timeout | Job timeout, in seconds |
Exampleβ
- View the last BACKUP task under example_db.
SHOW BACKUP FROM example_db;