This topic describes how to use Hybrid Backup Recovery (HBR) to back up files from Elastic Compute Service (ECS) instances.

Prerequisites

The preparations for data backup are completed. For more information, see Prepare for data backup.

Create a backup plan

  1. Log on to the HBR console.
  2. In the left-side navigation pane, choose Backup > ECS File Backup.
  3. In the top navigation bar, select a region.
  4. On the ECS File Backup page, click New Version.
  5. On the ECS Assets tab, find the ECS instance for which you want to create a backup plan. Then, click Back Up in the Actions column.
  6. In the Create Backup Plan panel, set the parameters and click OK.
    Parameter Description
    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 backup vault. The data redundancy mechanism improves data reliability of the backup 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.
    Plan Name The name of the backup plan. If you do not configure this parameter, a random name is specified for the backup plan.
    Backup Rules Select All Folders or Specified Folders.
    • If you select All Folders, you must turn on or off Exclude System Folders.
      • If you turn on Exclude System Folders, the system folders of Windows and Linux ECS instances are not backed up.

        You can move the pointer over the icon icon to the right of Exclude System Folders to view the system folders in Windows and Linux.

      • If you turn off Exclude System Folders, all folders of the ECS instances are backed up.
    • If you select Specified Folders, you must enter the names of system folders in the Source Paths field. To specify multiple source paths, click Add Folders.

      Specify backup paths based on the following rules:

      • If you do not use wildcards (*), you can enter up to eight backup paths.
      • If you use wildcards (*), you can enter only a single path. The path can be in the /*/* format.
      • Only absolute paths are supported, such as paths that start with /, \\, C:\, or D:\.
      • If you use Volume Shadow Copy Service (VSS), you can enter only one path. UNC paths and wildcards (*) are not supported. You cannot exclude files from the backup plan.
      • If you use Universal Naming Conversion (UNC), VSS paths and wildcards (*) are not supported. You cannot exclude files from the backup plan. If a UNC path is specified, HBR does not back up the access control list (ACL) of Windows.
    Exclude System Folders If you turn on Exclude System Folders, system folders are not backed up.
    Backup File Type Select All Types or Specified Type.

    If you select All Types, all types of files are backed up.

    If you select Specified Type, you must select the types of the files you want to back up from the Select File Type drop-down list.

    Start Time The time at which the backup plan starts. The time is accurate to seconds.
    Backup Interval The interval at which incremental backup is performed. Unit: hours, days, or weeks.
    Retention Policy Select Limited or Permanent.

    If you select Limited, you must select the types of the files that you want to back up from the Select File Type drop-down list.

    If you select Permanent, backup files are permanently retained.

    Retention Period This parameter is required only if the Retention Policy parameter is set to Limited. This parameter specifies the retention period of backup data. Unit: days, weeks, months, or years.
    Use VSS This feature is available only for Windows. If you turn on Use VSS, the Volume Shadow Copy Service (VSS) is used during backup. In this case, you can enter only one path. UNC paths or wildcards (*) are not supported. You cannot exclude files from the backup plan.
    Enable Traffic Shaping You can limit the bandwidth that is used for data backup during peak hours to ensure business continuity.

    If you enable traffic shaping, you must select the Time Range (Hour) based on your requirements, enter the Max Bandwidth (MB) for backup during the specified time range, and then click Add.

What to do next

On the ECS Assets tab, find the ECS instance that you want to back up. In the Actions column, perform the following operations:

  • Use HTTPS to transmit data

    If you use HTTPS to transmit data, the performance of data transmission is compromised. If you modify the setting of this parameter, the modification takes effect on the next backup or restore job.

    After data is encrypted and stored in the backup vault, you can choose More > Client Settings in the Actions columns and select whether to use HTTPS to transmit data.

  • Configure a backup alert policy

    You can choose More > Alert Settings in the Action columns and then select a backup alert policy. The following table describes the alert policies.

    Alert policy Description
    Disabled The backup client does not send alert notifications.
    Same as Backup Vault The backup client sends alert notifications in the same way as the backup vault.
    Default The backup client sends alert notifications to the owner of the Alibaba Cloud account by using emails.
    Custom If you select this option, you must select one or more contacts or contact groups. Then, the backup client sends alert notifications to the selected contacts and contact groups.
  • Delete a backup

    If you delete a backup, all backup data generated by the backup client is deleted and all backup and restore jobs that are being performed by the client fail. Before you delete a backup client, make sure that the backup data generated by the backup client is no longer required. In addition, make sure that no backup or restore jobs are being performed by the backup client.

    You can choose More > Delete Backup in the Actions column and then click OK to delete the backup data that is no longer required.

What to do next

Restore files to an ECS instance