This topic describes how to use Hybrid Backup Recovery (HBR) to back up data from Object Storage Service (OSS) buckets. After you back up the data, you can restore the data at the earliest opportunity if the data is lost or damaged.

Prerequisites

An OSS bucket whose storage class is Standard or Infrequent Access (IA) is created. For more information, see Create buckets.

Precautions

Before you use HBR to protect OSS objects, take note of the following information:
  • HBR cannot back up or restore symbolic links, object access control lists (ACLs), or objects in Archive buckets.
  • You are charged higher fees for access to the objects in IA buckets than for access to the objects in Standard buckets.
  • You are charged for OSS API operations that are called by HBR during the backup of OSS objects. The charges are included in your OSS bills. For more information, see OSS billable items and billing methods.
  • If you delete an existing backup, the data integrity of subsequent backups is not affected.

Procedure

To create a backup plan for an OSS bucket, perform the following steps:

  1. Log on to the HBR console.
  2. In the left-side navigation pane, choose Backup > OSS Backup.
  3. In the top navigation bar, select the region where the OSS bucket resides.
  4. On the Backup Plans tab, click Source Bucket.
  5. In the Create Backup Plan panel, set the parameters and click OK.
    Note You can use each backup plan free of charge for one month, which starts from the day when the backup plan is created. For example, if you create a backup plan on February 14, 2020, you can use the backup plan free of charge until March 14, 2020.
    1. The following table describes the basic parameters of the backup plan.
      Parameter Description
      Source OSS Bucket The name of the OSS bucket that you want to back up. Select an OSS bucket from the drop-down list.
      Plan Name The name of the backup plan. If you do not configure this parameter, a random name is specified for the backup plan.
      Start Time The time at which the backup plan starts. The time is accurate to seconds.
      Pay After Trial Ends Specifies whether to pay for the backup plan after the free trial ends. Valid values:
      • No (default value): The backup plan is not renewed after the free trial for the backup plan ends. If you select this option, the backup plan is deleted after the free trial period.
      • Yes: The backup plan is automatically renewed after the free trial ends.
    2. To configure advanced settings, click Show Advanced Settings, click Switch to Paid Plan, and then set the parameters. The following table describes the parameters.
      Parameter Description
      Source Path The prefix in the names of the objects that you want to back up from the OSS bucket. By default, no prefix is specified and all objects in the root directory of the OSS bucket are backed up.
      Backup Interval The interval at which incremental backup is performed. By default, the backup interval is one day. Unit: minutes, hours, days, and weeks.
      Retention Policy The retention policy of the backup data. Valid values:
      • Limited (default value): The backup data is retained for a specified period of time. If you select Limited, you must set the Retention Period parameter.
      • Permanent: The backup data is permanently retained.
      Retention Period This parameter is required only if the Retention Policy parameter is set to Limited. This parameter specifies the period of time for which the backup data is retained. Default value: 2 (years). Unit: days, weeks, months, or years.
      Backup Vault The backup vault to which you want to store the backup data. Valid values:
      • 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.
      Notice After a backup vault is created, you are charged for the backup vault regardless of whether backup data is generated. For more information, see Billing methods and billable items.
      Vault Name The name of the backup vault.
      Vault Resource Group This parameter is required only if the Backup Vault parameter is set to Create Vault. This parameter specifies the resource group to which the backup vault belongs.

      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 This parameter is required only if the Backup Vault parameter is set to Create Vault. This parameter specifies the type of data redundancy for the mirror vault. The data redundancy mechanism improves data reliability of the mirror vault.
      • Locally redundant storage

        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 storage

        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.

      For more information, see Storage vault types.

      Source Encryption Type This parameter is required only if the Backup Vault parameter is set to Create Vault. This parameter specifies the method that is used to encrypt the data in the backup 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.
      Notice
      • 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.
    3. Specify whether to use the OSS inventory feature to back up data from the OSS bucket.
      Parameter Description
      Use OSS Inventory This parameter specifies whether to enable the OSS inventory feature to back up data from the OSS bucket. Default value: No. We recommend that you enable this feature if you want to back up a large amount of data from an OSS bucket. For more information, see Use an OSS inventory list to create a backup plan for a large amount of OSS data.
    After the backup plan is created, HBR runs backup jobs based on the backup plan.

What to do next

The following table describes the operations that you can perform in the Actions column on the Backup Plans tab.
Operation Description
Run Now Immediately runs a backup job.
Modify Modifies the parameters of an OSS backup job if the backup job does not meet your business requirements.
Backups You can view all the backup record of the file system or its backup history in the recent three months.
Suspend Plan Suspends a running backup job.
Resume Plan Resumes a suspended backup job.
Delete Plan Deletes a running backup job. After you delete the backup plan, HBR no longer runs backup jobs for the backup plan but the backup data is retained.
Alert Settings If the backup job fails or the client is disconnected from the server, HBR sends an alert notification by default. For more information, see Configure alert notifications.

What to do next

Create an OSS restore job