Overview
Displays information about backup destinations used for backup and restore operations under all tenants.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| PATH | varchar(1024) | NO | Root Path of Backup |
| ENDPOINT | varchar(256) | NO | Host to be Set for Object Storage Access |
| DEST_ID | bigint(20) | YES | Backup Destination ID |
| DEST_TYPE | varchar(64) | YES | Type of the backup destination:
|
| AUTHORIZATION | varchar(1024) | NO | Object Storage Authorization Information |
| EXTENSION | varchar(512) | NO | Other parameters of the backup destination |
| CHECK_FILE_NAME | varchar(256) | YES | Verification File Name for Connectivity |
| LAST_CHECK_TIMESTAMP | timestamp(6) | YES | Time of Last Connectivity Check Pass |
| MAX_IOPS | bigint(20) | NO | Maximum IOPS Permitted for Backup Media |
| MAX_BANDWIDTH | bigint(20) | NO | Maximum bandwidth allowed for backup media, in bytes |
| MAX_BANDWIDTH_DISPLAY | varchar(29) | NO | The maximum bandwidth is displayed in a converted format, such as 10 GB/s or 10 MB/s. |
| STATUS | varchar(64) | YES |
|
Sample query
The system tenant queries the backup destination information used for backup and restore of the tenant with ID 1002.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_BACKUP_STORAGE_INFO WHERE TENANT_ID=1002;
The query result is as follows:
+-----------+-----------------------------------------+----------+---------+-------------+---------------+-----------+-----------------------------------------+----------------------------+----------+---------------+-----------------------+--------+
| TENANT_ID | PATH | ENDPOINT | DEST_ID | DEST_TYPE | AUTHORIZATION | EXTENSION | CHECK_FILE_NAME | LAST_CHECK_TIMESTAMP | MAX_IOPS | MAX_BANDWIDTH | MAX_BANDWIDTH_DISPLAY | STATUS |
+-----------+-----------------------------------------+----------+---------+-------------+---------------+-----------+-----------------------------------------+----------------------------+----------+---------------+-----------------------+--------+
| 1002 | file:///home/admin/oceanbase/arglog | | 1001 | archive_log | | | 1002_connect_file_20250103T081853.obbak | 2025-01-03 16:19:04.807451 | 0 | 0 | UNLIMITED | NORMAL |
| 1002 | file:///home/admin/oceanbase/backupdata | | 1002 | backup_data | | | 1002_connect_file_20250103T081928.obbak | 2025-01-03 16:20:34.069255 | 0 | 0 | UNLIMITED | NORMAL |
+-----------+-----------------------------------------+----------+---------+-------------+---------------+-----------+-----------------------------------------+----------------------------+----------+---------------+-----------------------+--------+
2 rows in set