You can use Hybrid Backup Recovery (HBR) to back up files in NAS file systems that comply with the Server Message Block (SMB) protocol for local Internet data centers (IDCs) and restore these files as required. This topic describes the preparations that you need to make before backing up data.

Prerequisites

A NAS file system that complies with the SMB protocol is created. For more information, see Create a file system.

Background

Before you use HBR to back up SMB NAS files for a local IDC, note the following points:

  • To achieve the optimal backup performance, we recommend that you run a backup client on a host with the following configurations: 64-bit CPU with at least two cores and more than 8 GB available memory.
  • The available memory determines the size of data that can be backed up. For a host with 4 GB available memory, a maximum of one million files can be backed up, with 8 TB data in total.

(Recommended) Prepare an AccessKey for a RAM user

Resource Access Management (RAM) is an Alibaba Cloud service that helps you manage user identities and access to your cloud resources. You can create and manage multiple RAM users under an Alibaba Cloud account. You can grant different permissions to each RAM user. This allows RAM users to have different access permissions on Alibaba Cloud resources.

An AccessKey is required when you activate a backup client. If the AccessKey of an Alibaba Cloud account is leaked, all cloud resources under the account may be exposed to risk. Therefore, we recommend that you use the AccessKey of a RAM user to activate backup clients. Before you back up data, make sure that a RAM user is created and an AccessKey is created for the RAM user. For more information, see Create a RAM user and Create an AccessKey pair for a RAM user.

Step 1: Add a mount target

In the NAS console, add a mount target for the created SMB NAS file system. For more information, see Create a mount target.

On the File System List page, find your SMB NAS file system and click Management in the Operations column. On the details page of the SMB NAS file system, confirm that a mount target is added for the file system and view the endpoint of the mount target.

Step 2: Create a client

You can use a file backup client to back up and restore files. Before that, you must create a file backup client and download the installation package to a host in a local IDC. You can create a file backup client in the HBR console. To create a file backup client, follow these steps:

  1. Log on to the HBR console.
    If your server or virtual machine runs a Linux operating system without a graphical user interface (GUI), use an intermediate host with a GUI as an agent to log on to the HBR console.
  2. In the left-side navigation pane, choose Backup & Recovery > On-Premises Backup. On the On-Premises Backup page, select File.
  3. Select a region where you want to store backup data.
    Note
    • If you use a Virtual Private Cloud (VPC), select the region of the VPC where the data to be backed up resides. This guarantees a fast backup.
    • If you do not use a VPC but expect optimal backup performance, we recommend that you select a region that is close to the location where the data to be backed up resides.
    • If you do not use a VPC but expect disaster recovery, we recommend that you select a region distant from the location where the data to be backed up resides to avoid losing data during a disaster.
  4. On the page that appears, click Create Client in the upper-right corner.
  5. In the Create Client pane that appears, set parameters as required.
    Parameter Description
    Backup Vault Config Specifies whether to create a backup vault or select an existing backup vault. A backup vault is a repository used by HBR to store backup data in the cloud. You can back up data from multiple backup clients to the same vault. Backup vaults reside in different regions. You can only select or create backup vaults in the current region.
    • If you have created backup vaults, set the value to Select Vault and select a backup vault from the Vault Name drop-down list.
    • If you have not created any backup vaults, set the value to Create Vault and set Vault Name to create a backup vault. The vault name can be a maximum of 64 characters in length.
    Source Client The source of the backup client. You can select an activated client or create a client.
    Client Name The name of the backup client. The client name can be a maximum of 64 characters in length.
    Software Platform The operating system that is running on the host from which you want to back up data. Valid values:
    • Windows 32-bit
    • Windows 64-bit
    • Linux 32-bit
    • Linux 64-bit
    Network Type
    • Virtual Private Cloud (VPC): Select this option when the host from which you want to back up data resides in a VPC and is in the same region as the backup vault.
    • Public Network: Select this option when VPCs are unavailable.
    Transmit Data On HTTPS Specifies whether to enable HTTPS-encrypted transmission. Your data will be encrypted and stored in a backup vault. You can choose whether to use HTTPS to transmit data based on data encryption. Note that using HTTPS will degrade the data transmission performance. If you modify this configuration, the modification takes effect when the next backup or restore job starts.
  6. Click Create and then Download Client.
    Note You can install a file backup client to back up data from your host to HBR. After you create a file backup client, you can also find the client in the client list and download the installation package of the client at any time.

Step 3: Install and activate the client

Notice
  • The host that runs the file backup client must have access to the Internet. If the host is an Elastic Compute Service (ECS) instance, the ECS instance can access the Internet through an Elastic IP Address (EIP) or a Network Address Translation (NAT) gateway.
  • Only a small number of control commands are sent during the Internet access, which incurs few traffic fees.

After you download the installation package of a file backup client, install and activate the client. To install and activate the client, follow these steps:

  1. Run the installation program, select the installation directory, and then complete the installation as prompted.
    Note Make sure that enough space is available in the installation directory because operational logs and an executable file are all stored in the installation directory.
  2. After the file backup client is installed, activate the client. Go to the HBR console. On the On-Premises Backup page, select File. On the page that appears, find the target file backup client and choose More > Activate Client in the Actions column. In the Activate Client step of the Create Client pane, set the parameters as described in the following table to activate the client.
    Parameter Required Description
    Client IP Address Yes The IP address of the file backup client that your current host can access. It can be an internal IP address or a public IP address. For example, the IP address can be the default IP address 127.0.0.1, an address like 12.34.56.78:8011, or http://87.65.43.21:8443.
    Note The IP address must be reachable from your current browser.
    AccessKey Id Yes The AccessKey ID and AccessKey secret of the RAM user used to access HBR. You can obtain the AccessKey ID and AccessKey secret of a RAM user under your Alibaba Cloud account for which HBR is activated. For more information, see Create an AccessKey for a RAM user.
    AccessKey Secret Yes
    Create Client Password Yes The password used to log on to the file backup client. The password must be at least six characters in length.
    Data Network Proxy No The URL of the proxy server used to transmit backup data.
    Note You can configure a data network proxy only for a file backup client whose version is 1.11.11 or later.
    Control Network Type No The type of the network through which you call the HBR API.
    Control Network Proxy No The URL of the proxy server used to call the HBR API.
    Message Channel Network Type No The type of the network through which the server delivers messages to the file backup client.
  3. Click Activate Client. The webpage of the file backup client appears. Then, you can use the file backup client to back up data.
    Note If you fail to activate a file backup client, you can reactivate the client. For more information, see How can I reactivate a file backup client?