In the Database Backup (DBS) console, you can modify the backup policy of a backup schedule that is in the Running state on the Backup Strategies page. For example, you can modify configuration items such as the full backup frequency, storage pool, and retention period.

Background information

A backup policy contains configuration items such as the backup cycle, retention period, and replication method of full backups, incremental backups, and log backups.

Prerequisites

A backup schedule is created to back up data from data sources. For more information, see Back up one or more databases.

Procedure

  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 the ID of the data source.
  4. In the DBS backup plan section of the Data source details page, click the ID of the backup schedule that you want to manage.
  5. In the left-side navigation pane of the backup schedule details page, click Backup Strategies.
    Note The backup schedule must be created by using batch backup. Otherwise, Backup Strategies is not displayed.
  6. Configure a level-1 storage pool.
    1. Click Modify next to backup policy. In the dialog box that appears, configure the parameters. Then, click OK.
      Table 1. Parameters that are used to specify a backup policy
      Parameter Description
      Full Backup Method The method that is used to perform full backups. Valid values:
      • Periodic Backup: performs full backups on a specific periodic basis.
        Note If you set the Full Backup Method parameter to Periodic Backup, you must set the Full backup frequency parameter.
      • Single backup
      Full backup frequency

      The interval at which full backups are performed. Default value: Every Week. You must perform one to seven full backups every week.

      This parameter is displayed only when you set the Full Backup Method parameter to Periodic Backup.

      Full Backup Cycle

      The days of the week when full backups are performed. You can select one or more days of a week.

      Start At
      The start time of each full backup. You can select an exact hour of the day.
      Note If a previous full backup is not finished at the start time of the next full backup, DBS skips the next full backup.
      Incremental Backup Interval

      The interval at which incremental backups are performed. Unit: minutes. Valid values: 10, 20, 30, 40, 50, and 60. Default value: 10. If you set the interval to 10 minutes, DBS performs an incremental backup every 10 minutes.

      This parameter is displayed only when you select Physical Backup. If you select Logical Backup and enable the incremental backup feature for databases such as MySQL databases, incremental backups are performed in real time.

    2. Click Modify next to Level-1 Storage Pool (Backup). In the dialog box that appears, configure the parameters to specify a level-1 storage pool. Then, click OK.
      Table 2. Parameters that are used to specify a level-1 storage pool
      Parameter Description
      Storage type
      The type of the storage that is used by data backups. Valid values: DBS Storage, NAS, and OSS For User.
      • You can back up data to NAS file systems or Object Storage Service (OSS) buckets only when you use the logical backup method.OSS For User
      • If the Storage type parameter is set to NAS for the level-1 storage pool, you cannot configure a level-2 storage pool.
      If you want to set this parameter to NAS or OSS For User, you must add OSS buckets or NAS file systems as DBS storage pools in advance. For more information, see Add and remove storage pools.
      Storage Pool

      The storage pool in which you want to store database backups. You must select a storage pool that is deployed in the same region as the data source.

      You cannot modify this parameter after the backup policy is created.
      Retention Period The duration for which full backups are retained. The default value is 2 Years, the maximum value is 10 Years, and the minimum value is 1 Week. For more information, see How do I manage the lifecycle rules of backup sets?.
      Encryption Method The method that you want to use to encrypt data. Valid values:
      • Built-in encryption: Backups are encrypted.

        The server-side encryption feature of Object Storage Service (OSS) is used. When you upload an object to a bucket for which server-side encryption is enabled, OSS encrypts the object and stores the encrypted object. When you download the encrypted object from OSS, OSS decrypts the object and returns the decrypted object to you. For more information, see Server-side encryption.

      • Unencrypted: Backups are not encrypted.
  7. Optional:Move the pointer over the Add a level-2 storage pool icon and click Dump.
    1. Click Modify next to Dump Policy. In the dialog box that appears, configure the parameters. Then, click OK.
      Table 3. Parameters that are used to specify a dump policy
      Parameter Description
      Full Dump Method The method that you want to use to dump backups. Valid values:
      • Periodic Backup: DBS dumps the most recent full backup set that is not dumped to level-2 storage pools on a specified periodic basis. If no new backup sets exist when the specified point in time is reached, DBS continues to monitor the creation of backup sets and performs a dump immediately after a backup set is created.

        For example, you can configure DBS to perform a full backup operation and store full backups in the level-1 storage pool every day, and dump backups to level-2 storage pools every Sunday. In this case, DBS dumps only the most recent full backup set to level-2 storage pools every Sunday.

      • Event Trigger: When a full or incremental backup is stored in the level-1 storage pool, DBS immediately dumps the backup to level-2 storage pools.
      Note If you set the Full Backup Method parameter to Periodic Backup, you must configure the Full Dump Cycle and Full Dump Start At parameters.
      Full Dump Frequency The interval at which you want to dump backups.
      • If you set the Full Dump Method parameter to Periodic Backup, you can set this parameter to one of the following values:
        • Every Week: This is the default value. You can specify one or more days of a week.
        • Every Month: You can specify one or more days from the first day to the 28th day of a month.
        • Every Year: You can select a specific day of a year. For example, you can specify January 1. You cannot specify more than one day.
      • If you set the Full Dump Method parameter to Event Trigger, this parameter is set to Event Trigger by default.
      Full Dump Cycle The days of the week when you want to dump full backups.

      This parameter is displayed only when you set the Full Dump Method parameter to Periodic Backup.

      Full Dump Start At The start time of each dump operation.

      This parameter is displayed only when you set the Full Dump Method parameter to Periodic Backup.

      Incremental Dump Specifies whether to dump incremental backups. If you enable this feature, DBS dumps incremental backups from the level-1 storage pool to level-2 storage pools.
    2. Click Modify next to Level-2 Storage Pool (Dump). In the dialog box that appears, configure the parameters to specify a level-2 storage pool. Then, click OK.
      Table 4. Parameters that are used to specify a level-2 storage pool
      Parameter Description
      Storage Class The type of the storage that you want to use. Valid values: DBS Storage, NAS, and OSS For User.

      Before you set this parameter to NAS or OSS For User, you must add the OSS buckets or NAS file systems that you want to use to the storage pool list. For more information, see Add and remove a storage pool.

      You can dump data backups to NAS file systems or OSS buckets only when you use the logical backup method.OSS For User

      Storage Pool The storage pool to which you want to dump backups. You cannot modify this parameter after the backup policy is created.
      • You can dump backups across regions. For example, you can specify the built-in storage space provided by DBS in the China (Hangzhou) region as the level-1 storage pool and the built-in storage space provided by DBS in the China (Beijing) region as a level-2 storage pool.
      • You can also dump backups across storage mediums. For example, you can specify the built-in storage space provided by DBS in the China (Hangzhou) region as the level-1 storage pool and an on-premises NAS file system as a level-2 storage pool.
      Retention Period The duration for which you want to retain backups in the storage pool. The default value is 2 Years, the maximum value is 10 Years, and the minimum value is 1 Week. For more information, see How do I manage the lifecycle rules of backup sets?.
      Encryption Method The method that you want to use to encrypt data. Valid values:
      • Built-in encryption: Backups are encrypted.

        The server-side encryption feature of Object Storage Service (OSS) is used. When you upload an object to a bucket for which server-side encryption is enabled, OSS encrypts the object and stores the encrypted object. When you download the encrypted object from OSS, OSS decrypts the object and returns the decrypted object to you. For more information, see Server-side encryption.

      • Unencrypted: Backups are not encrypted.
  8. Optional:Configure other level-2 storage pools. Perform the steps that are described in Step 7 to configure other level-2 storage pools that you want to use.
  9. Click OK.
    After the backup policy is modified, DBS backs up and dumps data based on the new configuration of the backup policy.