Note
This view is available starting with V4.0.0.
Purpose
This view displays the information about backup destinations used for backup and restore in all tenants.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| PATH | varchar(1024) | NO | The root path for backup. |
| ENDPOINT | varchar(256) | NO | The HOST for accessing the object storage. |
| DEST_ID | bigint(20) | YES | The ID of the backup destination. |
| DEST_TYPE | varchar(64) | YES | The type of the backup destination. Valid values:
|
| AUTHORIZATION | varchar(1024) | NO | The authorization information for the object storage. |
| EXTENSION | varchar(512) | NO | The other parameters of the backup destination. |
| CHECK_FILE_NAME | varchar(256) | YES | The name of the file for verifying connectivity. |
| LAST_CHECK_TIMESTAMP | timestamp(6) | YES | The time when the last connectivity check was successful. |
| MAX_IOPS | bigint(20) | NO | The maximum IOPS allowed for the backup media used for backup.
NoteThis column is available starting with V4.3.4. |
| MAX_BANDWIDTH | bigint(20) | NO | The maximum bandwidth allowed for the backup media used for backup, in bytes.
NoteThis column is available starting with V4.3.4. |
| MAX_BANDWIDTH_DISPLAY | varchar(29) | NO | The formatted maximum bandwidth. The format is similar to 10GB/s or 10MB/s.
NoteThis column is available starting with V4.3.4. |
Sample query
Query the information about backup destinations used for backup and restore for tenant 1002 in the sys tenant.
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 |
+-----------+-----------------------------------------+----------+---------+-------------+---------------+-----------+-----------------------------------------+----------------------------+----------+---------------+-----------------------+
| 1002 | file:///home/admin/oceanbase/arglog | | 1001 | archive_log | | | 1002_connect_file_20250103T081853.obbak | 2025-01-03 16:19:04.807451 | 0 | 0 | UNLIMITED |
| 1002 | file:///home/admin/oceanbase/backupdata | | 1002 | backup_data | | | 1002_connect_file_20250103T081928.obbak | 2025-01-03 16:20:34.069255 | 0 | 0 | UNLIMITED |
+-----------+-----------------------------------------+----------+---------+-------------+---------------+-----------+-----------------------------------------+----------------------------+----------+---------------+-----------------------+
2 rows in set