You can configure backup policies that use multi-level storage pools to manage on-premises and cloud databases with ease and share data backups among storage pools.

Background information

Backup policies allow you to perform batch backups on specific data sources based on your business scenarios. You can 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.

Prerequisites

Your application for the storage pool feature during the public preview is approved. For more information, see Note.

Configure a backup policy template

  1. Log on to the DBS console.
  2. In the left-side navigation pane, click Backup Strategies.
  3. Click Add backup strategy in the upper-left corner of the page.
    Note You can also modify an existing backup policy. Backup schedules that were created based on the backup policy are not affected.
  4. On the Create Policy Template page, configure the backup policy for the level-1 storage pool.
    Figure 1. Create a backup policy
    Create Policy Template
    1. Specify a policy name.
    2. Select Logical Backup or Physical Backup. You cannot change this parameter after the policy is created.
      Note For more information, see Backup methods.
    3. 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: performs a full backup at a specific point in time. Select this option if you want to perform proof of concept (PoC) testing.
      Full backup frequency The interval at which full backups are performed. By default, this parameter is set to Every Week, which indicates that at least one backup is performed each 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.
      Start At The start time of the full backup.
      Note If a previous full data backup is not finished at the start time of the next backup, Database Backup (DBS) skips the next backup.
      Incremental Backup Interval The interval at which incremental backups are performed. By default, this parameter is set to 10 minutes.

      This parameter is displayed only when you select Physical Backup.

      Note If Logical Backup is selected and incremental backups are supported, incremental backups are performed in real time.
    4. 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 the data backup. Valid values: DBS Storage, NAS, and OSS For User.

      If you set this parameter to NAS or OSS For User, you must add Object Storage Service (OSS) buckets or NAS file systems as DBS storage pools in advance. For more information, see Add and remove storage pools.

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

      Storage Pool The storage pool in which backups are stored. You must select a storage pool that resides within the same region as the data source. You cannot change 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?.
      Storage Encryption Specifies whether to encrypt backups. Default value: Encrypted. Valid values:
      • Encrypted: 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.

      • Non-encrypted: Backups are not encrypted.
  5. 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.

        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 select 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.
      • When 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 the 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 the data backup. Valid values: DBS Storage, NAS, and OSS For User.

      If you 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 back up 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. Backups can be dumped across regions. You cannot modify this parameter after the backup policy is created. For example, when you perform geo-redundancy, you can specify a level-1 storage pool that resides in the China (Hangzhou) region and a level-2 storage that resides in the China (Beijing) region.
      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?.
      Storage Method Specifies whether to encrypt backups. Default value: Encrypted. Valid values:
      • Encrypted: 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.

      • Non-encrypted: Backups are not encrypted.
  6. Optional:Repeat Step 5 to create multiple level-2 storage pools.
  7. Click OK.
    If you want to implement geo-redundancy, configure a backup policy and create a backup schedule. You must select the configured backup policy when you create the backup schedule. For more information about how to create backup schedules, see Back up one or more databases.

Modify the backup policy of a backup schedule

  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 policy.
  6. 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 5. 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.

        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 select 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.
      • When 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 the 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 6. Parameter description
      Parameter Description
      Storage type The type of the storage that is used by the data backup. Valid values: DBS Storage, NAS, and OSS For User.

      If you 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 back up 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. Backups can be dumped across regions. You cannot modify this parameter after the backup policy is created. For example, when you perform geo-redundancy, you can specify a level-1 storage pool that resides in the China (Hangzhou) region and a level-2 storage that resides in the China (Beijing) region.
      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?.
      Storage Method Specifies whether to encrypt backups. Default value: Encrypted. Valid values:
      • Encrypted: 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.

      • Non-encrypted: Backups are not encrypted.
  7. Optional:Repeat Step 6 to create multiple level-2 storage pools.
  8. Click OK.
    The geo-redundancy policy is created for the backup schedule. DBS dumps backups based on the configurations.