You can modify the backup policy of a backup schedule in the Running state on the Backup Strategies page. For example, you can modify backup policy parameters such as the full backup frequency, storage pool, and retention period.

Background information

Backup policies allow you to specify parameters such as the backup cycle, retention period, and replication method when full backup, incremental backup, or log backup is performed on a data source.

This topic describes how to modify a backup policy that uses multiple levels of storage pools. To use the multi-level storage pool feature, make sure that your application for the multi-level storage pool feature during the public preview is approved. For more information, see Public preview statement.

Prerequisites

The backup schedule is created by using batch backup of 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 a data source ID.
  4. In the DBS backup plan section of the Data source details page, click the ID of a backup schedule.
  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 to the right of backup policy. In the dialog box that appears, set the parameters for the backup policy. Then, click OK.
      Table 1. Parameter description
      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 to the right of Level-1 Storage Pool (Backup). In the dialog box that appears, set the parameters for a level-1 storage pool. Then, click OK.
      Table 2. Parameter description
      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.
      • 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 data backups are stored. You must select a storage pool that resides within 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 Specifies whether and how to encrypt backups. Default value: Built-in encryption. Valid values:
      • Built-in encryption: Backups are encrypted.

        The server-side encryption feature of 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 to the right of Dump Policy. In the dialog box that appears, set the parameters for a dump policy. Then, click OK.
      Table 3. Parameter description
      Parameter Description
      Full Dump Method The method that is used to dump backups. Valid values:
      • Periodic Backup: DBS dumps the latest full backup set that is not dumped to a level-2 storage pool on a specific periodic basis. If no qualified backup sets exist when the specific point of time is reached, DBS continues to monitor the creation of backup sets and performs a dump as soon as a backup set is created.

        For example, you can configure DBS to perform a full backup to the level-1 storage pool every day and a full dump to the level-2 storage pool every Sunday. In this case, DBS dumps only the latest full backup set to the level-2 storage pool every Sunday.

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

      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 full dump.

      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 the incremental backups from the level-1 storage pool to the level-2 storage pools.
    2. Click Modify to the right of Level-2 Storage Pool (Dump). In the dialog box that appears, set the parameters for the level-2 storage pool. Then, click OK.
      Table 4. Parameter description
      Parameter Description
      Storage type The type of the storage that is used by data backups. Valid values: DBS Storage, NAS, and OSS For User.

      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.

      You can dump data 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 backups are dumped. 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 of DBS in the China (Hangzhou) region as the level-1 storage pool and the built-in storage space of DBS in the China (Beijing) region as a level-2 storage pool.
      • You can also dump backups across heterogeneous storage spaces. For example, you can specify the built-in storage space of 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 dumped 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 Specifies whether and how to encrypt backups. Default value: Built-in encryption. Valid values:
      • Built-in encryption: Backups are encrypted.

        The server-side encryption feature of 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:Repeat Step 7 to create multiple level-2 storage pools.
  9. Click OK.
    The backup policy is modified. DBS backs up and dumps data based on the modified backup policy of the backup schedule.