# Install Acronis Backup Agent on Linux

Acronis Backup Agent facilitates the backup and recovery of data on Linux systems. It allows users to protect and restore their data efficiently. The Acronis Agent is installed on individual machines and servers to enable seamless integration with the Acronis Backup infrastructure, providing features such as scheduled backups, recovery options, and data protection in various environments.

## Prerequisites

* Ensure that you have the following:
  * Appropriate permissions for installation.
  * Your browser allows pop-ups.
  * A backup unit to download the installer.
  * Internet connectivity for the Virtual Machine (VM) and all its ports are open:

| **Type**           | **Destination IP address**                                                                                                  | **Ports**                                                                                                                                                                                                                                                                                                      |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Management servers | <p><code>85.215.127.12</code><br><code>85.215.127.13</code><br><code>85.215.127.14</code><br><code>85.215.127.15</code></p> | TCP ports `443` and `8443` are used to access the **Backup Service Console**, register the backup agents, download the certificates, obtain user authorization, and download files from the cloud storage. The backup agents use the whole range from `7770`-`7800` to communicate with the management server. |
| Storage servers    | <p><code>85.214.7.152</code><br><code>85.214.7.153</code></p>                                                               | TCP port `44445` is used by backup agents for data transfer during backup and recovery.                                                                                                                                                                                                                        |

* Only contract administrators, owners, and users with the **Create Backup Units** privilege can use the **Backup Service Console**.
* For **Ubuntu** and **Debian**, update the package list using:

  `sudo apt-get update`
* For **CentOS**, **Rocky**, and **Alma**, update the package list using:

  `sudo yum makecache`
* Make sure to install `wget` using either of these:

  `sudo yum install wget`

  `sudo apt install wget`

## Download the Acronis Backup Agent Installer

1\. In the **DCD**, go to **Menu** > **Storage & Backup** > **Backup Unit Manager**.

2\. Select a backup unit which you want to download the backup agent installer.

3\. Click the **Open Console** option within the **Backup Unit Manager**.

![Open the Backup Service Console](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-3b4c594754872c505d2336964e4b5fe134c05528%2Fmenu_backup_console.png?alt=media)

4\. A **Backup** window will open up with the [<mark style="color:blue;">Backup URL</mark>](https://backup.ionos.com/). Go to **DEVICES** > **Add**.

![Devices menu in the Backup Service Console](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-eb434dd14e5c87b33d99d8209c470150d36f8526%2Fdevices_add.png?alt=media\&token=fdc0876a-f2ef-4488-a497-8f666bf4df62)

5\. In **Add Devices** window, scroll down to **SERVERS** and then select **Linux**.

![Select Servers option in the Add Devices window](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-3e197a26cef70006999bbd3baa7fc1b1dc990cbd%2Flinux_access.png?alt=media\&token=c68c95ed-b06f-47eb-b612-7c4092bd216b)

6\. To allow downloads on the [<mark style="color:blue;">Backup URL</mark>](https://backup.ionos.com/), confirm your action by selecting **Allow**.

![Allow downloads on the Backup URL](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-da3a682516bc8968f5240476cfd65160f8b602a6%2Fpop_up.png?alt=media\&token=373cc169-b1de-48c2-8fa0-33ed68ee9921)

{% hint style="info" %}
**Note:**

* You can cancel the download if you only need the URL.
* Open the **Download Folder** on your browser and copy the link address. Delete everything after `.bin` to get the download URL directly. Now you can use the URL to download the backup agent installer on your target machine. **Example:** `wget https://backup.profitbricks.com/download/u/baas/x.0/<agent-version>/name_of_your_agent.bin`
  {% endhint %}

{% hint style="success" %}
**Result:** The **Backup Agent Installer** is now downloaded.
{% endhint %}

## Install the Acronis Backup Agent

1. To make the downloaded binary file executable, use:

   `chmod u+x name_of_your_agent.bin`
2. Run the installer file by executing the following command:

   `./name_of_your_agent.bin`
3. The Acronis Agent setup will now be initiated. Select the components that you want to install from the **Component Selection** list. You can choose **Agent for Linux** and then select **Next**.

   ![Component Selection list](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-2aeb51e7d70fe65ffdee9cdadedad3e3908c45ea%2Fagent_for_linux.png?alt=media\&token=5c13446e-4d11-4225-b313-d7af695814f1)
4. To install the required packages automatically, select **Continue**; otherwise, select **Skip**.

   ![Install required packages](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-b9a26e34fb67c235d9493462cff7c52758f978dc%2Fcontinue_popup.png?alt=media\&token=ccf2fe5b-37d0-4eb0-9805-5ef0af194ef3)
5. The installation of the required packages will begin.

   ![Install Cyber Protection Agent Packages](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-14091b188c5ac3d901122998c678446de932585c%2Finstallation_cyber_protection.png?alt=media\&token=cc348199-4491-4877-9312-3c39dd75565c)
6. Once the installation is completed, a prompt to register the machine will be displayed. To get the registration information, select **Show registration info** and hit **Enter**.

   ![Backup Agent](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-8082d779461a0bc7a5492de00c0a29dbbb25d199%2Fshow_registration.png?alt=media\&token=9d49dd54-59ce-482b-acf8-2e5962bdd836)
7. You will see a **Registration link** and a **Registration code**. Use the **Registration Code** to register a machine in the **Backup Service Console**.

   ![Registration link and Registration code](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-f9df5e9de97bd035f407ba64d8e850e01344b8c7%2Fregistration_link.png?alt=media\&token=3e97ef60-0417-4820-b252-4e556a245a44)
8. To register a machine in the **Backup Service Console** devices, go to **DEVICES** > **+ Add** > **REGISTRATION VIA CODE**. Click **REGISTER**.

   ![REGISTRATION VIA CODE](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-4ea6c5fd4e6877ed0b07972f2875f20a69fa0126%2Fregistration_via_code.png?alt=media\&token=464d6aa0-b6e3-429f-a5fd-e3b789038882)

{% hint style="success" %}
**Result:** The **Backup Agent** is now installed and registered in the **Backup Service Console** devices.
{% endhint %}

## Unattended installation

The installation of Acronis Backup Agent, for which you do not need to select options or provide input for each step, you can use either of the following methods:

* [<mark style="color:blue;">Using token</mark>](#using-token)
* [<mark style="color:blue;">Using backup unit credentials</mark>](#using-backup-unit-credentials)

### Using token

For unattended installation, you need to generate a token first:

1. In the **Backup** window, go to **DEVICES** and click **+Add**.

   ![Devices menu in the Backup Service Console](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-eb434dd14e5c87b33d99d8209c470150d36f8526%2Fdevices_add.png?alt=media\&token=fdc0876a-f2ef-4488-a497-8f666bf4df62)
2. Scroll down to **REGISTRATION TOKEN** > **GENERATE**.

   ![Generate registration token in the Backup Service Console](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-4e69d6580ed2a0ef82e34e774faf5fd0ebb39c55%2Fregistration_token.png?alt=media\&token=be69b939-8e98-4ee0-ad7f-393805bfa960)
3. Run the following command:

   `./name_of_agent.bin -a --rain="https://backup.xyz.com" --token=XXXX-XXXX-XXXX`

{% hint style="success" %}
**Result:** The installation will be completed using token and without being prompted for additional information.
{% endhint %}

### Using backup unit credentials

Run the following command:

`./name_of_agent.bin -a --rain="https://backup.xyz.com" --login=contractnumber- backupunitname --password=xxxxx`

{% hint style="success" %}
**Result:** The installation will be completed using backup unit credentials and without being prompted for additional information.
{% endhint %}
