You can clone backup data from earlier versions of Redis Open-Source Edition instances (such as 2.8 and 4.0) to Redis Open-Source Edition 5.0 instances for compatibility verification.
Procedure
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click its ID.
In the left-side navigation pane, click Backup and Restoration.
Clone the instance based on the instance architecture.
Standard architecture
Find the backup set that you want to use. In most cases, the latest backup set is used. Then, click Restore.
Cluster architecture
If the instance uses the cluster architecture, select the backup sets of all shards of the instance. For example, if you have a cluster instance that has four shards, you must select the following backup sets:
r-bp1vhgd6dzgu89****-db-0
r-bp1vhgd6dzgu89****-db-1
r-bp1vhgd6dzgu89****-db-2
r-bp1vhgd6dzgu89****-db-3
Then, click Restore 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.
Set the Version parameter to Redis 5.0. Given the same specifications and architecture, the cost of a Redis Open-Source Edition 5.0 instance is the same as that of the original instance.
NoteYou can also select a Tair (Enterprise Edition) memory-optimized instance, which delivers performance three times that of a Redis Open-Source Edition instance that has the same specifications.
The new Instance Type must be greater than or equal to the original instance specifications.
Use the default values for other parameters.
Read the Terms of Service and click Buy now.
After you complete the payment, wait for 1 to 5 minutes. Then, you can view the new instance created based on the data of the original Redis Open-Source Edition instance in the console.
What to do next
After the instance is cloned, you can migrate your business to the new instance for compatibility verification. You only need to add the IP address of your client to a whitelist of the new instance and update the endpoint in the code. For more information, see Configure whitelists and View endpoints.
After the compatibility verification is complete, you can release the new instance and directly upgrade the major version of the original Redis Open-Source Edition instance from 2.8 to 5.0. After the upgrade, the instance ID, connection address, data, and whitelist settings remain unchanged. For more information, see Upgrade the major version.