You can use Hybrid Backup Recovery (HBR) to back up files in NAS file systems that comply with the network file system (NFS) 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.
A NAS file system that complies with the NFS protocol is created. For more information, see Create a file system.
Before you use HBR to back up NFS 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
Step 2: Mount the NFS NAS file system
After the mount target is added, mount the NFS NAS file system to the server or virtual machine from which you want to back up data. To mount the NFS NAS file system, follow these steps:
- Install an NFS client on the server or virtual machine from which you want to back
For more information about how to install an NFS client in the Linux operating system, see Step 1: Install an NFS client.
- Mount the NFS NAS file system to the server or virtual machine from which you want
to back up data.
For more information about how to mount an NFS NAS file system, see Step 2: Mount an NFS file system.
Step 3: Create a file backup client
- 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.
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:
- 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.
- In the left-side navigation pane, choose File.. On the On-Premises Backup page, select
- Select a region where you want to store backup data.
- 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.
- On the page that appears, click Create Client in the upper-right corner.
- 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
- 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.
- 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 4: Install and activate the client
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:
- Run the tar -xzvf hbr-install-xxx-linux-amd64.tar.gz command to decompress the downloaded installation package to a specific directory.
Then, run the./setup command to install the client.
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.
- 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 Activate Client step of the Create Client pane, set the parameters as described in the following table to activate the client.
in the Actions column. In the
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 126.96.36.199:8011, or http://188.8.131.52: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.
- Click Activate Client. The webpage of the file backup client appears. Then, you can use the file backup client to back up data.