The cluster recycle bin stores released clusters of Apsara PolarDB. You can restore a cluster in the recycle bin to a new cluster, or delete a backup set of the cluster. This topic describes how to manage PolarDB for MySQL clusters in the recycle bin.

Considerations

  • Each cluster in the cluster recycle bin must have at least one backup set. You cannot restore a cluster in the recycle bin if all backup sets of the cluster have been deleted.
  • After a cluster is released, all level-1 backups in the cluster recycle bin are asynchronously archived to level-2 backups at a rate of approximately 150 MB/s. For more information, see Back up data.

Pricing

Note Starting May 11, 2020, Alibaba Cloud begins charging for backups in Apsara PolarDB. To help you familiarize yourself with the recycle bin feature and the possible charges, you can use the recycle bin feature free of charge before May 18, 2020.

You can use level-1 backups free of charge, but you will be charged for using level-2 backups.

Region Fee (USD/GB/hour)
Mainland China 0.0000325
China (Hong Kong) and regions outside China 0.0000455

Restore data to a new cluster

  1. Login ApsaraDB for PolarDB console.
  2. In the upper-left corner of the console, select the region where the cluster is located.
  3. Click Cluster Recycle in the left-side navigation pane.
  4. On the Cluster Recycle page that appears, find the cluster that you want to manage, and click Restore to New Cluster in the Actions column.
    Restore data to a new cluster
  5. Specify Subscription or Pay-As-You-Go as the billing method.
    • Subscription: When you create a cluster, you must pay for a primary node and a read replica. The consumed storage is billed on an hourly basis and fees are deducted from your account every hour. The Subscription billing method is a cost-effective choice if you want to use the cluster for long-term services. More discounts will be provided if you use a longer subscription period.
    • Pay-As-You-Go: Both the created nodes and consumed storage are billed on an hourly basis. Fees are deducted from your account every hour. The Pay-As-You-Go billing method is a cost-effective choice if you use the cluster for a limited period of time. You can release the cluster at the end of the required period to reduce your costs.
  6. On the buy page, confirm that the information in the Deleted Cluster section is correct, and select the backup that you want to restore in the Historical Backup section.
    Note
    • The timestamps of the backups in the Historical Backup drop-down list are displayed in UTC. The timestamps of backups in the Backups list are displayed in the system time format. Make sure that you choose the correct historical backup. For example, the timestamp of a backup in the Backups list is 10:00:00 on May 8, 2020 (UTC +8). The timestamp of the corresponding historical backup is 2020-05-08T02:00:00Z.
    • For more information, see Create a PolarDB for MySQL cluster.
    Restore a cluster in the cluster recycle bin
  7. Click Purchase Now.
  8. On the Confirm Order page, confirm your order information, read and accept the Apsara PolarDB Subscription Agreement of Service, and then click Pay.
    Note The amount of time consumed to restore data to a new cluster depends on the size of the backup. It takes more time for the system to restore data from a larger backup.

Delete a backup set

  1. Login ApsaraDB for PolarDB console.
  2. In the upper-left corner of the console, select the region where the cluster is located.
  3. Click Cluster Recycle in the left-side navigation pane.
  4. Find the cluster that you want to manage, and click the Add icon next to the cluster to show a list of backup sets.
  5. Find the backup set that you want to delete, and click Delete Backup in the Actions column.
    Delete backup
  6. In the Delete Backup dialog box that appears, click OK.
    Warning A cluster in the recycle bin cannot be restored if you delete all backup sets of the cluster. Proceed with caution.

Related topics

Release a PolarDB cluster