This topic describes how to restore a Redis database by using Database Backup (DBS).

Prerequisites

The database is backed up. For more information, see Back up a Redis instance.

Procedure

  1. Log on to the DBS console.
  2. In the left-side navigation pane, click Backup Schedules. On the Backup Schedules page, select a region in the upper-left corner.
  3. On the Backup Schedules page, click Manage in the Actions column corresponding to the ID of the backup schedule based on which you want to create physical backups.
  4. On the Configure Task page, click Restore Database in the upper-right corner.
  5. On the Set Time Restored To page, configure the following parameters and click Next.
    Section Parameter Description
    N/A Task Name

    The name of the restoration task. DBS generates a task name. We recommend that you set a descriptive name that makes the task easy to identify. Task names do not need to be unique.

    Set Time Restored To Time Range Available to Restore

    The time range from the time point when the first full backup set is created to the time point when the latest full backup set is created. The database can be restored to a point in time within the time range.

    Restore To

    The point in time to which you want to restore the source database. The value must be within the time range that is specified by the Time Range Available to Restore parameter.

    Configure Destination Database Database Location In this example, the backup set is restored to an ApsaraDB for Redis instance. For information about how to create an ApsaraDB for Redis instance, see Step 1: Create an ApsaraDB for Redis instance.
    Note If you want to restore the backup set to a database of another type, you must set more parameters. For more information, see Other parameters. You must make sure that the destination database is available when you perform the backup operation.
    Instance Region The region where the destination database to which you want to restore your database resides.
    Database Type

    This parameter is set to Redis by default.

    Redis Instance ID The ID of the destination ApsaraDB for Redis instance.
    Password The password of the account used to connect to the database that you want to back up. After you enter the username and password of the database account, click Test Connection next to the password to check whether the information of the database that you want to back up is correct. If the specified parameters are valid, the Test Passed message appears. If the Test Failed message appears, click Check next to Test Failed. Modify the information about the instance that you want to back up based on the check results.
  6. On the Configure Objects to Restore page, select the database or tables that you want to restore and add them to the Selected section. Then, click Precheck in the lower-right corner.
  7. If the Precheck Passed message appears, click Start Task.
    To view the restoration progress, go to the backup schedule management page and click Restore Tasks in the left-side navigation pane.
    Note The amount of time used to restore a database depends on the specification of the backup schedule and the size of the database. A higher specification indicates a higher restoration speed. For more information, see Backup and recovery performance tests.