You can use the scheduled backup feature provided by Object Storage Service (OSS) to periodically back up objects in a bucket to Hybrid Backup Recovery (HBR). If an object is lost, you can restore the object from HBR.

Prerequisites

  • HBR is activated. You can go to the HBR product page to activate HBR.
  • HBR is authorized to read data from OSS. Log on to the HBR console, click OSS Backup in the left-side navigation pane, and then follow the on-screen instructions to authorize HBR to read data from OSS.

Billing rules

When you use the scheduled backup feature, you are charged the following fees:
  • Fees for access requests to OSS
    • Before each backup task starts, HBR uses the ListObject operation to obtain the list of objects to back up. Each ListObject request can list up to 1,000 objects.
    • After the object list is obtained, HBR uses the HeadObject operation to obtain the metadata of the objects to back up. Each HeadObject request can obtain the metadata of one object.
    • HBR uses the GetObject operation to back up objects. Each GetObject request can obtain the metadata of one object.
    • HBR uses the ListObject operation to query the backup progress and verify the objects that are backed up. Each ListObject request can verify up to 1,000 objects.

    For more information about the billing methods for OSS API requests, see API operation calling fees.

  • If you back up an Infrequent Access (IA) object, you are charged data retrieval fees. For more information about the billing methods, see Data processing fees.
  • You are charged for storage of backups in HBR vaults. For more information about the billing methods, see Billing methods and billable items.

Limits

  • Scheduled backup cannot be configured for buckets whose storage classes are Archive or Cold Archive.
  • Backup and restoration of symbolic links, Archive and Cold Archive objects, and the access control lists (ACLs) of objects are not supported.
  • The scheduled backup feature is supported only in the following regions: China (Hangzhou), China (Shanghai), China (Shenzhen), China (Beijing), China (Zhangjiakou), China (Hong Kong), Singapore, Australia (Sydney), Indonesia (Jakarta), and US (Silicon Valley).

Use the OSS console

Method 1: Configure a scheduled backup plan for an existing bucket

  1. Log on to the OSS console.
  2. In the left-side navigation pane, click Buckets. On the Buckets page, click the name of the desired bucket.
  3. In the left-side navigation tree, choose Data Management > Scheduled Backup.
  4. In the Scheduled Backup panel, click Source Bucket.
  5. Configure a backup plan.
    • Configure a free backup plan by using a free trial
      Important A free backup plan does not allow you to modify Source Path and Backup Interval. Each free backup plan uses an independent backup vault, and the vault cannot be changed even if you pay for the plan after the free trial period expires. If you want to back up all data to the same backup vault, do not use a free backup plan.
      1. In the Create Backup Plan panel, retain the default settings.
      2. Click OK.

        HBR provides a 30-day free trial for the scheduled backup feature.

    • Configure a paid backup plan
      You can configure a paid backup plan to specify the backup interval, the objects that you want to back up, and the number of days for which you want to retain backups.
      1. In the Create Backup Plan panel, click Switch to Paid Plan. In the message that appears, click OK.
      2. In the Create Backup Plan panel, configure the parameters. The following table describes the parameters.
        Parameter Description
        Source OSS Bucket The name of the current bucket.
        Backup Vault The backup vault in which backups are stored.
        • Create Vault: If you select this option, specify a name for the vault in the Vault Name field. If you do not configure this parameter, a random name is specified for the backup vault.
        • Select Vault: If you select this option, select a backup vault from the Vault Name drop-down list.
        Vault Resource Group The resource group to which the backup vault belongs. This parameter is required only if you set the Backup Vault parameter to Create Vault.

        You can use resource groups to manage resources owned by your Alibaba Cloud account. Resource groups simplify the resource and permission management of your Alibaba Cloud account. For more information, see Create a resource group.

        Data Redundancy Type The type of data redundancy for the backup vault. The data redundancy mechanism improves the data reliability of the backup vault. This parameter is required only if you set the Backup Vault parameter to Create Vault.
        • Local-redundant

          If LRS is enabled, HBR stores the copies of each object on multiple devices of different facilities in the same zone. This way, HBR ensures data durability and availability even if hardware failures occur.

        • Zone-redundant

          If ZRS is enabled, HBR uses the multi-zone mechanism to distribute data across three zones within the same region. If a zone becomes unavailable, the data can still be accessed.

        Source Encryption Type The method that is used to encrypt the data in the backup vault. This parameter is required only if you set the Backup Vault parameter to Create Vault.
        • HBR-managed (default value): You can use the default encryption method of HBR.
        • KMS: You can use Key Management Service (KMS) to encrypt data that is stored in the backup vault. If you select this option, you must specify the KMS KeyId parameter.
        Important
        • If you enable KMS-based encryption, you cannot modify a KMS key.
        • Before you can use the KMS key to encrypt the data in the backup vault, you must create the key ID in the KMS console. For more information, see Create a CMK.
        Plan Name The name of the backup plan. The name cannot exceed 64 characters in length. If you do not configure this parameter, a random name is specified for the backup plan.
        Source Path The prefix in the names of the objects that you want to back up from the OSS bucket. If you do not configure this parameter, all objects in the OSS bucket are backed up.
        Start Time The time at which the backup starts. The time is accurate to seconds.
        Backup Interval The interval at which incremental backup is performed on a daily or weekly basis. By default, the backup interval is one day.
        Retention Policy The retention policy of the backup data. Valid values:
        • Limited: HBR retains backups within a specific period of time and automatically deletes the backups after the specific period of time ends.
        • Permanent: Backups are permanently stored.
        Retention Period The retention period for backups. You can specify a value in days, weeks, months, and years. This parameter is required only if you set Retention Policy to Limited.
        Use OSS Inventory Specifies whether to enable the OSS inventory feature to back up data from the OSS bucket. The OSS inventory feature of HBR can be used to back up a large amount of data from an OSS bucket. This way, the performance of incremental backup is improved. For more information about how to create and run OSS backup plans by using the OSS inventory feature, see Use an OSS inventory list to create a backup plan for a large amount of OSS data.
      3. Click OK.

        HBR runs backup jobs based on the backup plan.

Method 2: Configure a scheduled backup plan when you create a bucket

  1. Log on to the OSS console.
  2. In the left-side navigation pane, click Buckets. On the Buckets page, click Create Bucket.
  3. In the Create Bucket panel, configure the parameters. The following table describes the parameters.

    Turn on Scheduled Backup. For information about how to configure other parameters, see Create buckets.

  4. Click OK.

    After the bucket is created, a backup plan is automatically created to back up data once a day and retain the backups for one week. The backup plan has a free trial period of 30 days.

    To view or modify a backup plan, choose Data Management > Scheduled Backup.

References

You can create restore jobs to restore backups to OSS. For more information, see Create an OSS restore job.