In scenarios where data is deleted by mistake or quick business deployment is required, you can clone an ApsaraDB for Redis instance from a specified backup set at any time. The data in the new instance is the same as that in the specified backup set.
When you clone an instance, you can create a new instance whose number of shards or architecture is different from the source instance. However, you must make sure that the total memory capacity of the new instance is greater than the size of the backup set. Otherwise, data restoration may fail.
During the cloning process, do not change the configurations of the source instance. Otherwise, the cloning fails.
Restoring data from a backup set to a new instance results in the creation of a new Redis instance and incurs associated costs. For more information, see Billable items.
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the left-side navigation pane, click Backup and Recovery.
Find the backup set that you want to use and click Recovery in the Action column.Important
If the instance uses the cluster or read/write splitting architecture, select the backup sets of all shards of the instance. For example, if you have a cluster instance that has two shards, you must select the r-bp1vhgd6dzgu89****-db-0 and r-bp1vhgd6dzgu89****-db-1 backup sets, and then click Recovery in the upper-left corner.
In the message that appears, read the prompt and click OK.
On the Clone Instance page, configure the required parameters. The parameters displayed in the console prevail.
Read and select the Redis terms of service.
Click Buy Now.
After you complete the payment, wait for 1 minute to 5 minutes. Then, you can view the created instance in the Redis console.
What to do next
After you create a new instance, you may need to perform the following operations:
Configure a whitelist for the instance. For more information, see Configure whitelists.
If you did not configure a password when you created the instance, specify an account password for the instance. For more information, see Change or reset the password. If you have already configured a password, skip this step.
On the instance details page in the Redis console, obtain the endpoint of the new instance and connect to the instance for data verification. If the instance passes the verification, you can use the endpoint of the instance on your application to restore your business.
If you no longer use the source instance, you can release the instance to conserve resources. For more information, see Refund policy.
Related API operations
Creates an instance and restores data from a specified backup set to the instance.