You can use Hybrid Backup Recovery (HBR) to back up files from local NAS file systems and restore the files based on your business requirements. This topic describes how to prepare for a data backup.

Prepare an AccessKey pair for a RAM user (Recommended)

Resource Access Management (RAM) is an identity management service that is provided by Alibaba Cloud. RAM allows you to create and manage multiple identities of an Alibaba Cloud account and grant different permissions to a single identity or a group of identities. This way, you can authorize different identities to access different Alibaba Cloud resources.

An AccessKey pair is required when you activate an HBR client. The AccessKey pair is an identity credential. If the AccessKey pair of your Alibaba Cloud account is leaked, all cloud resources that belong to your account are exposed to risks. Therefore, we recommend that you use an AccessKey pair of a RAM user to activate HBR clients. For information about how to create a RAM user and create an AccessKey pair for the RAM user, see Create a RAM user and Create an AccessKey pair for a RAM user.

Download and activate an HBR client for Windows

  1. In the left-side navigation pane, choose Backup > NAS Backup.
  2. In the top navigation bar of the page, select the region where the instance is deployed.
    Note The following regions are supported: China (Shanghai), China (Hohhot), and Australia (Sydney).
  3. On the NAS Backup page, click Local NAS.
  4. In the upper-right corner of the page, click Add Client.
  5. Download an HBR client for Windows.
    You can download the installation package of the HBR client for Windows (64bit) or Windows (32bit). Record the activation code. The code is used to install and activate the client.
  6. Install and activate the HBR client for Windows.
    1. Double-click the installation package of the HBR client and select a language for installation.
    2. Select the path in which you want to install the client and click Next.
    3. Select Local client connecting to Alibaba Cloud and click Next.
    4. If you want to use a proxy server, enter the address of the proxy server. Click Next.
    5. Enter the activation code in the Activation token field. Then, click Next.
    6. Click Install.
      After the client is installed, perform the following steps to view the status of the client: Go to the On-Premises Backup page, click File (New), and then click the Clients tab. On the Clients tab, Activated is displayed in the Client Status column.

Download and activate an HBR client for Linux

  1. Log on to the HBR console.
  2. In the left-side navigation pane, choose Backup > NAS Backup.
  3. In the top navigation bar of the page, select the region where the instance is deployed.
    Note The following regions are supported: China (Shanghai), China (Hohhot), and Australia (Sydney).
  4. In the upper-right corner of the page, click Add Client.
  5. Download and decompress an HBR client for Linux.
    You can download the installation package of the HBR client for Linux (64bit) or Linux (32bit). Record the activation code. The code is used to install and activate the client.
  6. Manually or automatically activate the HBR client for Linux.

    In the following example, 05M72DYX indicates the dynamic activation code that is obtained from the HBR console.

    • Manually activate the HBR client for Linux

      In the path to which the HBR client is decompressed, run the following command to activate the client: ./setup -t local -k 05M72DYX.

    • Automatically activate the HBR client for Linux

      Run the following command on the HBR client: /bin/bash -c "$(curl -fsSL https://a-hbr-resource-shanghai.oss-cn-shanghai.aliyuncs.com/client/install/hbrclient/install-local-hbr-client.sh)" -- -k 05M72DYX. The client is automatically activated.

      In the preceding command, https://a-hbr-resource-shanghai.oss-cn-shanghai.aliyuncs.com indicates the public endpoint of the OSS bucket in which the scripts used to activate HBR clients are stored.

  7. Run one of the following commands to install the required tool to back up and restore local NAS file systems.
    The NFS and SMB protocols are supported. You can select a tool based on the protocol of your NAS file system.
    • NFS tool
      • CentOS
        sudo yum install nfs-utils
      • Ubuntu
        sudo apt-get install nfs-common
    • SMB tool
      • Centos
        sudo yum install cifs-utils
      • Ubuntu
        sudo apt-get install cifs-utils
      • openSUSE
        sudo zypper install cifs-utils

What to do next

Back up an on-premises NAS file system