You can use Hybrid Backup Recovery (HBR) to back up files and folders from servers or virtual machines in 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.
When you use HBR to back up files and folders from servers or virtual machines in local IDCs, note the following points:
- For more information about how to back up files from Elastic Compute Service (ECS) instances, seeBack up files in ECS.
- 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.
- Currently, you can use HBR to back up and restore files and folders on servers or virtual machines in the following regions: China (Beijing), China (Shanghai), China (Shenzhen), China (Hangzhou), China (QingDao), China (Zhangjiakou), China (Hohhot), China (Hong Kong), Singapore, US (Silicon Valley), Indonesia (Jakarta), Malaysia (Kuala Lumpur), Australia (Sydney), Germany (Frankfurt) and Japan (Tokyo). The services will be available in more regions soon.
(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. RAM allows you to create and manage multiple identities under an Alibaba Cloud account, and grant diverse permissions to a single identity or a group of identities. In this way, you can authorize different identities to access different 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, seeCreate a RAM userandCreate an AccessKey pair for a RAM user.
Step 1: 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:
- Log on to theHBR 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, chooseFile.. 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, clickCreate Clientin the upper-right corner.
- In theCreate Clientpane that appears, set parameters as required.
The following table describes the parameters.
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 toSelect Vaultand select a backup vault from theVault Namedrop-down list.
- If you have not created any backup vaults, set the value toCreate Vaultand setVault Nameto 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 encrypt the data during transmission. 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.
- ClickCreateand thenDownload 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 2: Install and activate the client
After you download the installation package of a file backup client, install and activate the client.
- Select an installation directory, decompress the installation package, and then install
the file backup 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.
- If your host runs Windows, run the executable file decompressed from the installation package, select an installation directory, and then follow the instructions to install the client.
- If your host runs Linux, decompress the installation package to a specified directory
and run the
./setupcommand to install the client.
- After the file backup client is installed, activate the client. Go to the HBR console.
On the On-Premises Backup page, selectFile. On the page that appears, find the target file backup client and choose 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.
Note We recommend that you download the installation package and install a file backup client before activating 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, 184.108.40.206:8011, or 220.127.116.11: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, seeCreate 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.
- ClickActivate Client. The webpage of the file backup client appears. Then, you can use the file backup client to back up data.
(Optional) Configure a backup policy
Before you back up data, we recommend that you schedule the backup time and backup interval based on your business needs.
- If you do not have backup schedules, skip this step.
- If you have backup schedules, configure a backup policy and specify the first backup time and backup interval.
To configure a backup policy, follow these steps:
- Log on to an HBR file backup client.
Open a browser and enter
http://localhost:8011in the address bar. Enter the password to log on to the file backup client.Note
- If you back up data through an intermediate host, replace
localhostwith the IP address of the server or virtual machine from which you want to back up data.
- Port 8011 is the default port that you can use to log on to a file backup client. If port 8011 on the server or virtual machine is occupied by another application, specify another port number for the file backup client. For more information, seeHow can I change the number of the logon port for a file backup client?
- If you back up data through an intermediate host, replace
- In the left-side navigation pane, clickBackup Policies.
- On theBackup Policespage that appears, clickCreate Policyin the upper-right corner.
- In theCreate Policydialog box that appears, setNameand other parameters as described in the following table, and clickSubmit.
Parameter Description Name The name of the backup policy. Frequency The interval for backing up data. Valid units: hours, days, and weeks. Backup Time The time to start the first backup. The first backup is a full backup. Retention The retention period of backup data. Valid units: days, months, and years.
Maximum retention period: 3,650 days (10 years).