You can use Hybrid Backup Recovery (HBR) to back up Object Storage Service (OSS) objects and restore the objects when they are lost or damaged.

Prerequisites

An OSS bucket whose storage class is Standard or Infrequent Access is created. For more information, seeCreate buckets.

Background

Before you use OSS to back up and restore the objects, note the following items:

  • Currently, HBR cannot back up and restore objects in buckets whose storage class is Archive. In addition, HBR cannot back up and restore symbolic links and object access control lists (ACLs).
  • The expense for accessing objects in a bucket whose storage class is Infrequent Access is higher than that in a bucket whose storage class is Standard.
  • OSS charges you a fee for calling the OSS API when you back up OSS data. For more information, seeBilling items and methods.
  • Currently, you can use HBR to back up and restore OSS data in the following regions: China (Beijing), China (Shanghai), China (Shenzhen), China (Hangzhou), China (QingDao), China (Zhangjiakou), China (Hohhot), China (Hong Kong), Singapore, US (Silicon Valley), Indonesia (Jakarta), Malaysia (Kuala Lumpur), Australia (Sydney), Germany (Frankfurt) and Japan (Tokyo). This feature will be available in other regions soon.

Step 1: Create a backup plan

To create a backup plan, follow these steps:

  1. Log on to theHBR console.
  2. In the left-side navigation pane, chooseBackup > OSS Backup.
  3. On the OSS Backup page, click the Backup Plan tab. On this tab, select a bucket to be backed up from theOSS Bucketdrop-down list in the upper-left corner.
  4. On theBackup Plantab, clickCreate Backup Planin the upper-right corner.
  5. In theCreate Backup Planpane that appears, set parameters as required and clickOK.
    Note You can create a backup plan and use it free of charge for two months from the date of creation. For example, if you created a backup plan on February 14, 2020, the backup plan is free until April 14, 2020.
    Create Backup Plan pane
    1. Set the basic parameters as described in the following table.
      Parameter Description
      Plan Name The name of the backup plan. If you do not specify this parameter, a random name is set by default.
      Start Time The start time of the backup plan. The time is accurate to seconds.
      Continue Plan (Paid) Specifies whether to renew the backup plan after its free trial expires.
    2. ClickSwitch to Paid Usage NOWand set the advanced parameters as described in the following table.
      Parameter Description
      Plan Run Interval The interval for backing up incremental data. Valid units: days and weeks.
      Backup Retention Policy The retention policy of backup data. Valid values:Specify Retention TimeandForever.

      If you selectSpecify Retention Time, you must set theRetentionparameter. Currently, the valid units of the Retention parameter are days, weeks, months, and years.

      Retention The retention period of backup data. Valid units: days, weeks, months, and years.
      Backup Vault Config The backup vault to store backup data. Valid values:Create VaultandSelect Vault.
      • Create Vault: You can enter a vault name to create a backup vault. If you do not specify this parameter, a random name is set by default.
      • Select Vault: You can select an existing backup vault from the Vault Name drop-down list.
      Backup Bucket Prefix The OSS prefix of objects to be backed up in the specified OSS bucket. If you do not specify this parameter, HBR backs up all objects in the bucket by default.

      After the backup plan is created, HBR backs up OSS objects at the specified start time and at the specified intervals. On theBackup Plantab, you can also perform the following operations:

      • Start a backup job: Find the target backup plan and clickExecutein theActionscolumn.
      • Pause a backup job: Find the target backup plan and chooseMore > Disable Planin theActionscolumn. To resume a paused backup job, chooseMore > Enable Planin theActionscolumn.
      • Delete a backup job: Find the target backup plan and chooseMore > Delete Planin theActionscolumn. After you delete a backup plan, HBR no longer runs the plan but retains data that is backed up by using the plan.

Step 2: Create a restore job

You can restore the backup data of an OSS bucket to the original OSS bucket or another OSS bucket.

  1. On theRestore Jobstab, clickCreate Restore Jobin the upper-right corner.
  2. In theCreate Restore Jobpane that appears, select a backup vault forBackup Vaultand the source OSS bucket forBucket to be restored, setSnapshot to RestoretoSnapshots of Last 3 MonthsorAll Snapshots, select a backup source, and then clickNext.
  3. In theSelect Restore Filesstep, setRestore Ruleand click Next.

    Valid values of the Restore Rule parameter:

    • Include All Files: HBR restores all objects in the specified OSS bucket.
    • Include FilesorExclude Files: Enter object paths in theInput File Listfield. HBR restores objects in the specified OSS bucket based on this restore rule.
    In the Input File List field, enter an object path in each line. Make sure that each path starts with the OSS prefix that you specified in the relevant backup plan. The following example shows how to enter object paths:
    • If the specified OSS prefix is a/b/ and you want to include or exclude folder and file.txt, enter the following object paths:
      a/b/folder
      a/b/file.txt
    • If no OSS prefix is specified and you want to include or exclude folder and file.txt, enter the following object paths:
      folder
      file.txt
  4. In theConfig Restore Destinationstep, select the destination OSS bucket forRestore to OSS Bucketand specify the OSS prefix of objects to be restored in the destination OSS bucket forRestore to Bucket Prefix. If you do not specify the OSS prefix, HBR restores objects to the root directory of the destination OSS bucket.
    Config Restore Destination step
  5. ClickCreate.
    After the restore job is created, you can view the job progress in theStatuscolumn on theRestore Jobstab.