More and more users choose to use Redis for persistent storage. Consequently, users raise higher requirements for data reliability. The data backup and restore solution provided by ApsaraDB for Redis has significantly improves data reliability.
Automatic backup by using backup policies
Background
An increasing number of applications use Redis for persistent storage. In this case, an automatic backup mechanism is required to back up data on a regular basis so that you can quickly restore data in the event of user errors. ApsaraDB for Redis uses RDB snapshots to back up data on replica nodes. The backup process has no negative impacts on the performance of your instance. You can customize a backup policy in the console.
Procedure
Manual backup (instant backup)
In addition to automatic backup, you can also manually back up data at any time in the console.
Backup archiving
Background
Due to industry regulations or corporate policy requirements, you may need to archive backup data for Redis periodically. ApsaraDB for Redis provides a backup archiving feature, which is free of charge. You can use this feature to store automatically and manually created backup files in Object Storage Service (OSS). You can store backup files in Alibaba Cloud OSS free of charge for up to seven days. After seven days, the backup files are automatically deleted.
To retain backup files for a longer time period, you can copy their URLs of the backup files from the console and download the backup files to a local host.
Procedure
- Log on to the ApsaraDB for Redis console.
- On the top of the page, select the region where the instance is deployed.
- On the Instances page, click the instance ID or Manage in the Actions column for the instance that you want to manage.
- In the left-side navigation pane, click Backup and Recovery.
- On the Data Backup tab, select the backup dataset to be archived and click Download Backups in the Actions column.
Data restore
ApsaraDB for Redis provides the data restore feature to minimize the possible loss caused by user errors. You can restore data from backup files in the console or use redis-shake on an Elastic Compute Service (ECS) instance to restore data from local backup files.
Restore data in the consoleRestore data on an ECS instance
You can use redis-shake on an ECS instance to restore data from local backup files to an ApsaraDB for Redis instance. For more information, see Use the redis-shake tool to back up data.
Clone an instance
O&M administrators may need to deploy an application during their daily maintenance work. It is simple for O&M administrators to deploy an application in an ECS instance that is created based on an image file. Deploying a database is complex. O&M administrators must purchase or install a database, and then initialize relevant database scripts, for example, to create tables, triggers, and views. In this scenario, they must perform many trivial operations, which are more likely to involve user errors. In the gaming industry that requires efficient service deployment, administrators have to quickly deploy an application multiple times each day.
To resolve this issue, ApsaraDB for Redis develops an instance cloning feature. This feature enables you to create a subscription or pay-as-you-go instance based on backup files. You can develop and deploy a database on the web interface, which improves productivity. For more information, see Clone an instance.