Database Backup (DBS) allows you to physically back up and restore an ApsaraDB for Redis instance.

Prerequisites

The ApsaraDB for Redis instance uses Redis 4.0 or 5.0 and the cluster architecture.

Note

The storage pool feature is in public preview. To use this feature, scan the following QR code to join the DingTalk group whose ID is 35585947.

QR code to join the DingTalk group whose ID is 35585947

Step 1: Add a data source

Data sources are databases or file paths to be backed up. The data source information includes data source names, regions where data sources are located, database engines, and database accounts and passwords.

For more information, see Add a data source.

Note You can use Redis physical backup schedules that are created only by using batch backup.

When you add a data source, set Data source category to Cloud database and Instance type to ApsaraDB for Redis. The instance ID, database account, and password are also required.

Step 2: Create a backup policy

A backup policy in Database Backup (DBS) contains parameters such as the backup method, storage method, backup frequency, backup cycle, and backup start time. For more information, see Create a backup policy template.

Note When you create a backup policy, select Physical Backup. For more information, see Backup methods.

Step 3: Back up a database

  1. Log on to the DBS console.
  2. In the left-side navigation pane, click Data Source. On the Data Source page, select a region in the upper-left corner.
  3. Click Batch backup.
    Batch backup
  4. Set Database source type to Redis, set Backup Method to Physical Backup, and then click Start Batch Backup.

    The system lists the available data sources that meet the specified conditions.

  5. In the Data Source step, select the data sources that you want to back up and click Next Backup Object.
    Note
    • You can select one or more databases in this step. The batch backup feature does not allow you to select data sources across multiple pages. By default, 20 data sources are displayed on each page. If you need to back up more than 20 data sources, we recommend that you perform multiple batch backups.
    • To search for a data source, you can enter the name of the data source in the search box. You can also filter the data source based on the logical group to which the data source belongs.
    • If the database account and password are not configured for the data source that you want to back up, you must configure the account and password. For more information, see Configure the account and password for a data source.
  6. In the Backup Object step, select the data sources that you want to add. Select the databases and tables that you want to back up and click the right arrow to move these databases and tables from the Available section to the Selected section. Click Next Configure Backup Settings.
    Note
    • You can use the physical backup method to back up an entire instance.
    • You can click One-click backup to back up all databases and tables in an instance.
  7. In the Backup Configuration step, select a backup schedule specification, modify the backup configurations, and then click NextBackup Strategy.
    1. Click Select the specifications. In the dialog box that appears, select a backup schedule specification and click OK.
      Select the specifications.
      Note
      • The backup schedule specification that you select applies to all data sources that you add in this batch backup. You cannot select a backup schedule specification for each data source.
      • The free quota for data backup, unit price, and backup and restoration performance vary based on backup schedule specifications. For more information, see Select backup schedule specifications.
    2. Click Modify the backup configuration in bulk. In the dialog box that appears, modify the following parameters and click OK.
      Section Parameter Description
      The underlying configuration maximum number of parallel threads for a full backup The maximum number of concurrent threads available for a full data backup.
      Note The maximum number of actual concurrent threads varies based on backup schedule specifications in the console.
      Real-Time Transaction Log Backup Specifies whether to enable incremental backup.
      Advanced configuration None None
      Note To modify the backup configurations, you can also click Modify the backup configuration in the Actions column.
  8. In the backup policy step, click Batch apply backup strategies. In the dialog box that appears, select the backup policy that you created in Step 2 and click OK. Then, click Next Purchase Backup Schedule.
    Note To modify a backup policy, you can click Select an option in the backup policy column.
  9. In the Purchase Schedule step, check the order information, read and select service terms, and then select Auto-renewal at expiration. Click Batch order, and then complete the payment.

    After the payment is successful, the system starts to configure the backup schedule and perform a precheck. A precheck includes initializing the backup schedule and checking the configuration environment.

    Note The precheck takes about 1 to 2 minutes. A larger data source requires more time. Click Precheck Progress to view the precheck progress.
  10. After the precheck is successful, click Complete.

    After you click Complete, the system automatically starts the backup schedule. You can view the created backup schedule on the details page of the destination instance.

What to do next