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

Prerequisites

The database is backed up. For more information, see Back up an ApsaraDB for Redis instance by using logical backup.

Procedure

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.

  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, find the ID of your backup schedule and click Manage in the Actions column.
  4. On the Configure Task page, click Restore Database in the upper-right corner.
  5. In the Set Time Restored To step, set the parameters that are described in the following table. Then, click Next.
    SectionParameterDescription
    N/ATask Name

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

    Set Time Restored ToTime Range Available to Restore

    The time range from the point in time when the first full backup set is created to the point in time 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.
    Note
    • If the incremental backup feature is enabled, DBS allows you to restore the data to a point in time from the completion of the first full backup to the completion of the last incremental backup.
    • If the incremental backup feature is disabled, DBS allows you to restore the data to a point in time when a full backup is complete.
    Configure Destination DatabaseDatabase LocationThe location of the destination database.
    Note If you want to restore the backup set to a database of another type, you must set more parameters. For more information, see Back up an ApsaraDB for Redis instance by using logical backup. You must make sure that the destination database is available when you perform the backup operation.
    Instance RegionThe region in which the destination database resides.
    Database Type

    This parameter is set to Redis by default.

    Redis Instance IDThe ID of the destination ApsaraDB for Redis instance.
    Password

    The password of the account that is used to connect to the database that you want to back up.

  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. After the Precheck Passed message appears in the Precheck dialog box, click Start Task.
    To view the database restoration progress, 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. Higher specifications offer a higher restore speed. For more information, see Performance tests on backup and restoration.