You can use a backup set to clone a cluster on the AnalyticDB for MySQL console.

Prerequisites

  • The cluster does not have an ongoing migration task.
  • If you want to restore a cluster to a point in time, the log backup function is enabled for the cluster.
  • If you want to restore a cluster from a backup set, the cluster must have at least one backup set.

Precautions

Restoring a cluster recreates the cluster from a backup set or a specified point in time. AnalyticDB for MySQL will automatically recover the data to the new cluster. This process will incur fees. For more information, see Pricing.

Step 1: Restore a cluster

  1. Log on to the AnalyticDB for MySQL console.
  2. In the upper-left corner of the page, select the region where the target cluster resides.
  3. In the left-side navigation pane, click Clusters.
  4. On the V3.0 Clusters tab, choose More > Restore Cluster in the Actions column corresponding to the target cluster.
    Restore a cluster
  5. On the Clone Instance page that appears, configure the parameters.
    Table 1. Parameters
    Parameter Description
    Source Cluster The ID of the source cluster to be cloned.
    Restore Mode The method used to clone the cluster. You can use one of the following methods to clone the cluster:
    • Backup Set: clones the cluster from a backup set.
    • Backup Point-in-time: clones the cluster to a point in time at which the cluster was backed up.
    Backup Point-in-time Set the point in time at which the cluster was backed up.
    Version The version of the new cluster. The default value is 3.0.
    Region The region where the new cluster resides. The new and source clusters must reside within the same region.
    Zone The zone where the new cluster resides. A zone is an independent physical location within a region. There are no substantial differences between different zones within the same region.
    Network Type The network type of the new cluster. The default value is VPC. A virtual private cloud (VPC) is an isolated network environment that provides enhanced security.
    VSwitch Select a VSwitch from the specified VPC.
    Edition The edition of the new cluster. The edition of the new cluster must be the same as that of the source cluster.
    Instance Type The ECU type. For more information, see Specifications.
    Node Groups The number of node groups. By default, each node group consists of three replicas.
    Capacity The disk capacity of a node group.
  6. After you configure the preceding parameters, read and select AnalyticDB for MySQL (Pay-As-You-Go)Terms of Service.
  7. Click Buy Now and pay for the order.

Step 2: Log on to the new cluster to check the data integrity

For more information about how to log on to a cluster, see Connect to a cluster.

After you check the data integrity, you can release the original cluster. For more information, see Delete a cluster.