This topic describes how to use Hybrid Backup Recovery (HBR) to back up your OSS data.

Prerequisites

  • HBR is activated. To activate HBR, go to the HBR details page.
  • HBR is authorized to access OSS data.
    When you use HBR to back up your OSS data for the first time, you can use either of the following methods to authorize HBR to access OSS.
    • Log on to the HBR console. In the left-side navigation pane, click OSS Backup. Follow the prompts to authorize HBR.
    • Log on to the OSS console. Go to the details page of a bucket and choose Files > Scheduled Backup. Follow the prompts to authorize HBR.

Background information

You can create a backup plan in HBR to back up your OSS data. This allows you to recover your data when the data is lost due to an unintended modification or deletion. You can also use HBR to store historical OSS data for an extended period of time and at low cost. You can use either of the following methods to configure a backup plan:

Instructions

  • The scheduled backup feature cannot back up or restore Archive or Cold Archive buckets, symbolic links, and object access control lists (ACLs).
  • High access fees are incurred when you back up Infrequent Access (IA) objects.
  • The scheduled backup feature is implemented by using the OSS backup feature of HBR. If you use the default configuration, you can use it for free for two months. After the free period ends, backup fees are charged.
  • Fees for calling OSS API requests are charged when the scheduled backup feature backs up OSS data to HBR. For more information, see Billing 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 (Zhangjiakou), China (Hong Kong), Singapore, US (Silicon Valley), Indonesia (Jakarta), Australia (Sydney), and Germany (Frankfurt). This feature will be available in other regions soon.

Method 1: Create a backup plan for an existing bucket

  1. Log on to the OSS console.
  2. Click Buckets, and then click the name of the target bucket.
  3. Choose Files > Scheduled Backup.
  4. In the Scheduled Backup dialog box, click Create Backup Plan.
  5. In the Create Backup Plan dialog box that appears, set relevant parameters as described in the following table and click OK.
    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.
    backup plan
    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. Click Switch to Paid Usage NOW and 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 Time and Forever.

      If you select Specify Retention Time, you must choose retention for the Retention parameter. 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 Vault and Select 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 the Backup Plan tab, you can also perform the following operations:

      • Start a backup job: Find the target backup plan and click Execute in the Actions column.
      • Pause a backup job: Find the target backup plan and choose > Disable Plan in the Actions column. To resume the paused backup job, choose > Enable Plan in the Actions column.
      • Delete a backup job: Find the target backup plan and choose > Delete Plan in the Actions column. After you delete a backup plan, HBR no longer runs the plan but retains data that is backed up by using the plan.

Method 2: Create a 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 page that appears, click Create Bucket.
    You can also click Overview. Click Create Bucket in the upper-right corner.
  3. In the Create Bucket dialog box that appears, set parameters.
    Click Enable for Scheduled Backup. For other parameters, see Create buckets.
  4. Click OK.
    After the bucket is created, a backup plan is automatically created to buck up data once a day and save the backup files for one week. You can choose Files > Scheduled Backup to view the backup plan that was created.