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

(Recommended) Create an AccessKey pair for a RAM user

Resource Access Management (RAM) is an Alibaba Cloud service that allows you to manage user identities and control access to resources. RAM allows you to create and manage multiple identities for an Alibaba Cloud account, and grant multiple 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 an identity credential and is required when you activate an HBR client. If you use the AccessKey pair of your Alibaba Cloud account, the AccessKey pair may be leaked and all cloud resources that belong to the account may be exposed to risks. Therefore, we recommend that you use the AccessKey pair of a RAM user to activate HBR clients. For more information, see Create a RAM user and Create an AccessKey pair for a RAM user.

Download and activate an HBR client for Windows

  1. Log on to the HBR console.
  2. In the left-side navigation pane, choose Backup > NAS Backup.
  3. On the left of the top navigation bar, select a region.
    Note Alibaba Cloud continuously updates HBR to support more regions. You can log on to the HBR console to view the regions in which HBR is supported.
  4. On the NAS Backup page, click Local NAS.
  5. In the upper-right corner of the page, click Add Client.
  6. Download the HBR client for Windows.
    You can download the installation package of the HBR client for Windows (64-bit) or Windows (32-bit). Record the activation code. The activation code is used to install and activate the client.
  7. Install and activate the HBR client for Windows.
    1. Double-click the installation package of the HBR client and select the language that you want to use.
    2. Select the path in which you want to install the client and click Next.
    3. Select Local client connecting to Alibaba Cloud, and then click Next.
    4. Configure the logon identity.
      • If you want to back up or archive the files only from local paths, select Local System.
      • If you want to back up or archive files that are shared over a network, select This user. The user must meet the following requirements:
        • The user has the permissions of the local administrator.
        • The user has the permissions to log on as a service.
          To configure the logon user, perform the following steps:
          1. Open the Control Panel. In the window that appears, click Administrative Tools.
          2. Open Local Security Policy and choose Local Policies > User Rights Assignment.
          3. Turn on Logon as a service. In the dialog box that appears, add a user.
        • The user has the permissions to access files that are shared over a network.
    5. If you want to use a proxy server, enter the IP address of the proxy server. Click Next.
    6. Enter the activation code that you recorded in the Activation token field and click Next.
    7. Click Install.
      After the client is installed, Activated is displayed in the Client Status column on the On-premises Backup page.

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. On the left of the top navigation bar, select a region.
    Note Alibaba Cloud continuously updates HBR to support more regions. You can log on to the HBR console to view the regions in which HBR is supported.
  4. In the upper-right corner of the page, click Add Client.
  5. Download and decompress the HBR client for Linux.
    You can download the installation package of the HBR client for Linux (64-bit) or Linux (32-bit). Record the activation code. The activation code is used to install and activate the client.
  6. Manually or automatically activate the HBR client for Linux.

    In the following example, 05M72DYX is 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 ./setup -t local -k 05M72DYX command to activate the client.

    • Automatically activate the HBR client for Linux.

      In the Add Client panel, click Auto Active (Linux Only) and copy one of the commands based on your network. Then, paste and run the command on the client for Linux to activate the client.

      Automatic activation
    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.
  7. Run one of the following commands to install the tool that is required to back up and restore local NAS file systems.
    The Network File System (NFS) and Server Message Block (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