ApsaraDB for Redis provides data persistence. Backups are automatically created based on the default backup policy. You can modify the policy as your needs change. You can also manually create temporary backups.

Background information

ApsaraDB for Redis uses Redis database (RDB) snapshots to persist data for your instance. Data that is stored in memory is persisted to disks at points in time. Data retrieval is not affected while Tair is creating backups.

By default, ApsaraDB for Redis backs up once a day for your instance. You can also perform a manual backup at any time. Backup files can be retained only for seven days. To retain backup files longer, you can download the backup files to your computer. For more information, see Download a backup file.
Note Additionally, Tair also optimizes append-only files (AOFs) persistence. AOF after the optimization, AOFs can be incrementally archived so that data can be restored within seconds and O&M efficiency can be improved. For more information, see Use data flashback to restore data by point in time.

Precautions

When an instance backup is being created, another backup cannot be created. We recommend that you create another backup after the first backup is generated.

Procedure

  1. 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 its ID.
  2. In the left-side navigation pane, click Backup and Recovery.
  3. Perform one of the operations that are described in the following table based on your business requirements.
    OperationProcedure
    Modify the automatic backup policy
    1. In the upper-right corner, click Backup Settings.
    2. In the panel that appears, specify Backup Cycle and Backup Time.
      Figure 1. Configure an automatic backup policy
      Configure an automatic backup policy
      • Retention Days: the number of days for which to retain backups. This parameter is set to 7 and cannot be changed.
      • Backup Cycle: the backup cycle. You can select one or more days of a week on which to back up data. By default, one backup is created per day.
      • Backup Time: the period of time to back up data. You can specify one or more hours of a day during which to back up data. We recommend that you back up data during off-peak hours.
        Note The time displayed in the console is in the same time zone as your computer.
    3. Click OK.
    Manually create a temporary backup
    1. Click Create Backup in the upper-right corner.
    2. In the message that appears, click OK.

Related API operations

OperationDescription
CreateBackupManually creates a database backup for an ApsaraDB for Redis instance.
DescribeBackupPolicyQueries the backup policy of an ApsaraDB for Redis instance. The backup policy includes the backup cycle and backup time.
ModifyBackupPolicyModifies the backup policy of an ApsaraDB for Redis instance.