You can restore a cluster that has a backup.
Prerequisites
You have backed up the cluster to be restored. For more information, see Back up now.
You cannot restore data for an OceanBase cluster that has been physically backed up from a later version to an earlier version.
Procedure
Log on to the OceanBase Cloud Platform (OCP) console.
Go to the Initiate Recovery page by using one of the following methods.
Method 1: Initiate a restore task on the Recovery page.
In the left-side navigation pane, choose Backup & Recovery > Recovery.
On the Recovery page, click Initiate Recovery in the upper-right corner.
Method 2: Initiate a restore task on the O&M page of a cluster.
In the left-side navigation pane, click Clusters to go to the Cluster Overview page.
Click the target cluster in Clusters or Resource Usage to go to the O&M page of the cluster.
In the left-side navigation pane, click Backup & Recovery.
On the Backup & Recovery page of the cluster, click Initiate Recovery.
Note
You cannot restore a cluster by using Method 2 in the following circumstances:
- The cluster is not in the Running state.
- The cluster does not have a backup strategy.
Method 3: Initiate a restore task on the O&M page of a tenant.
In the left-side navigation pane, click Tenants to go to the Tenants page.
Click the target tenant in the Tenants list to go to the O&M page of the tenant.
In the left-side navigation pane, click Backup & Recovery.
On the Backup & Recovery page of the tenant, click Initiate Recovery.
Note
You cannot restore a tenant by using Method 3 in the following circumstances:
- The tenant is not in the Running state.
- The tenant does not have a backup strategy.
(Optional) If you use Method 1, specify the storage parameters, or click Select Existing Configuration.

Parameter Description Storage Class The type of storage media for backup files. Valid values: - File: Your local file storage system. Generally, Network File System (NFS) is used.
- OSS: Alibaba Cloud OSS is supported only in OceanBase Database V2.2.76 and later.
- COS: Cloud Object Storage (COS) of Tencent Cloud is supported only in OceanBase Database of V2.2.76 and later but earlier than V4.0, or in OceanBase Database V4.2.1 and later.
- OBS: Huawei Cloud Object Storage Service (OBS) is supported only in OceanBase Database V3.2.3.2-105000062022090916 and later but earlier than V4.0.0.0.
Storage Directory Select the directory in which the backup files are stored. - You can click Select Existing Configuration to automatically populate the following parameters: Domain, User, AccessKey Pair, and Host for Parsing.
- You can also manually specify the parameters.
Domain Enter the domain name of the cloud storage of backup files. - If you select OSS for Storage Type, enter the domain name that has access to the files stored in Alibaba Cloud OSS, for example,
oss-cn-hangzhou.aliyuncs.com. - If you select COS for Storage Type, enter the domain name that has access to the files stored in the COS bucket of Tencent Cloud, for example,
cos.ap-beijing.myqcloud.com. - If you select OBS for Storage Type, enter the domain name that has access to the files stored in OBS of Huawei Cloud, for example,
obs.cn-north-4.myhuaweicloud.com.
User This parameter is displayed only when Storage Type is set to OSS. It is the user used to access the cloud storage of backup files. AccessKey Pair This parameter is displayed only when Storage Type is set to OSS. It is the AccessKey used to access the cloud storage of backup files. Resource Identity (APPID) When Storage Type is set to COS, move the pointer over the question mark (?) and specify the value as prompted. Project ID When Storage Type is set to COS, move the pointer over the question mark (?) and specify the value as prompted. Project Key When Storage Type is set to COS, move the pointer over the question mark (?) and specify the value as prompted. Host for Parsing 1. When Storage Directory is set to Select Existing Configuration, the host for parsing is automatically populated. Otherwise, select a value as prompted.
2. Click Parse to obtain the list of clusters that can be restored.Specify the parameters in the Recovery Source and Time section by selecting the values from the corresponding drop-down lists.
Note
By default, the tenant is restored. In OceanBase Database V2.2.77 and later but earlier than V4.0.0.0, you can restore tables in the tenant when you restore the tenant.
Restore a tenant
Parameter Description Source Cluster If you initiate a restore task from the O&M page of a cluster, the cluster is the source cluster by default, and you do not need to specify this parameter. Source Tenant Select the tenant to restore. Recovery Date Select a date within the specified recoverable time range. Restore Point in Time Select a point in time within the specified time range. Restore a table
If you use Method 3 to restore a tenant, you can restore tables in the tenant.
Parameter Description Source Cluster The source cluster to restore the table. The default value is the cluster to which the current tenant belongs. Source Tenant The source tenant to restore the table. The default value is the current tenant. Recovery Date Select a date within the specified recoverable time range. Restore Point in Time Select a point in time within the specified time range. Restore Table Object Select the tables to be restored in the source object list on the left and click > to add them to the target object list.
Select the destination tenant of the restore task. Select a cluster in the Running state from the drop-down list and enter the new tenant name.
Note
The following types of clusters cannot be used as the restore destination:
- Clusters in the primary/standby mode.
- Clusters in the Unavailable state.
- Clusters of an OceanBase Database version earlier than that of the source cluster.
Specify the following zone-related parameters and set the priorities of the zones.
Parameter Description Replica Type Valid values: - Full-featured Replica: A standard replica type that contains all the data categories and all the features, including MemTables, SSTables, and transaction logs. A full-featured replica can switch to the leader role efficiently to provide services.
- Log Replica: A replica that contains only logs. It does not have a MemTable or an SSTable. It provides log services for external applications and participates in log voting. It can facilitate the restore of other replicas, but it cannot become the leader to provide database services.
- Read-only Replica: A replica that contains full logs, MemTables, and SSTables. You can select this type of replica for applications that does not require high consistency in data reading.
Unit Specification The specification of the resources that the replica occupies. - You can select an existing specification or
- create a specification as needed and select the new one.
Units The amount of resource units occupied by the replica. Note
If the version of the destination cluster is V4.0 or later, you can only set the same number of units for all zones. In other words, the number of units that you specify on this page applies to all zones under the restored tenant.
Click Initiate Recovery.