Downloading and Installing the Agent
Scenarios
Before backing up files, you need to change the security group of the target servers or VMs, and install the Agent on them. This section describes how to download and install the Agent.
Currently, only hosts running 64-bit OSs are supported.
Installing the Agent on a Linux Server
- Log in to the CBR console.
- Log in to the management console.
- Click in the upper left corner and select a region.
- Click and choose Storage > Cloud Backup and Recovery > File Backups.
- Click the Backup Clients tab and locate the target backup client. Click Add Backup Client. On the displayed page, select Linux.
Figure 1 Linux
- Log in to the target host as user root.
- On the host, run curl -kv obs.Region ID.myhuaweicloud.com to check that the network is connected. Replace Region ID with the ID of the region you select. For example, if you select CN North-Beijing4, replace it with cn-north-4.
- Complete the wget https://obs.region1.myhuaweicloud.com/cbr/deploy/cbragent/install_cbr_agent.sh command and run the command on the server to download the sh script. Then check that the script's SHA256 value is the same as that listed in Table 1.
- Complete the installation command provided on the CBR console.
/bin/bash -c '$(curl -kfsSL https://obs.region1.myhuaweicloud.com/cbr/deploy/cbragent/install_cbr_agent.sh)' -- -a {} -s {} -p 0605767aecxxxxxxxxxxxx -r region1
- Copy the region ID from the installation page to replace variable region id.
- Enter the AK and SK in the brackets of a {} and s {} in the command. How to obtain an AK/SK?
Delete the brackets after entering the AK and SK.
- Run the obtained command on the host to install the Agent.
- If information similar to the following is displayed, the Agent is successfully installed.
Figure 2 Executing the installation command
- Wait for about 1 minute, and view the backup client in the backup client list. If the Agent status is Normal, the system successfully detects the client, and the Agent is running properly.
Installing the Agent on a Windows Server
- Log in to the CBR console.
- Log in to the management console.
- Click in the upper left corner and select a region.
- Click and choose Storage > Cloud Backup and Recovery > File Backups.
- Click the Backup Clients tab and locate the target backup client. Click Add Backup Client. On the displayed page, select Windows.
Figure 3 Windows
- Click Download to download the latest Agent installation package to the local computer. Ensure that the package's SHA256 value is the same as that listed in Table 1.
- On the local host, choose Start > Run. In the Run dialog box, enter cmd and press Enter.
On the host, run ping obs.Region ID.myhuaweicloud.com to check that the network is connected. Replace Region ID with the ID of the region you select. For example, if you select CN North-Beijing4, replace it with cn-north-4.
- Decompress the obtained package to the installation directory. Then go to the script directory, right-click agent_install.bat, and choose Run as administrator from the shortcut menu. In the displayed dialog box, enter the following information.
- Ensure that the installation path contains only letters, digits, underscores (_), or hyphens (-). See Figure 4.
- access_key: Enter your AK. How to obtain an AK/SK?
- secret_key: Enter your SK. How to obtain an AK/SK?
- project_id: Copy the project ID from the installation page.
- region: Copy the region ID from the installation page.
If you install the Agent in Windows Server 2019, Windows Server 2012, or Windows 7, a message indicating that MSVCR100.dll is missing will be returned. You can rectify the issue by referring to MFC security update and then re-install the Agent.
- After "CBR Agent was installed successfully" is returned, wait for about 1 minute, go back to the backup client list, and find the backup client. If its Agent status is Normal, the Agent has been installed successfully.
Removing a Client
If a backup client is no longer needed, you can remove it.
- Log in to the CBR console.
- Log in to the management console.
- Click in the upper left corner and select a region.
- Click and choose Storage > Cloud Backup and Recovery > File Backups.
- Click the Backup Clients tab and locate the target backup client. Locate the row that contains the target backup client, click More in the Operation column, and choose Remove Client. See Figure 5.
- Click Yes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot