Unattended plugin configuration

The plugin supports two-factor authentication (2FA).

If you have 2FA enabled, you must enter the 2FA code within 10 minutes of the request. Otherwise, the configuration will time out.

  1. Log on to the host as the root user.
  2. If you haven’t installed the plugin yet, run the following command:

    sh <(curl -L https://download.acronis.com/ci/cpanel/stable/install_acronis_cpanel.sh || wget -O - https://download.acronis.com/ci/cpanel/stable/install_acronis_cpanel.sh)

    Otherwise, just skip this step.

  3. Modify the following file:

    /usr/local/cpanel/base/3rdparty/acronisbackup/python/lib/python3.8/site-packages/acronis_backup_ srv/bash_scripts/configurator.ini
Parameter name Required Value
acronis_cyber_cloud_url OPTIONAL

Acronis Cyber Protect Cloud DC address, used together with Client ID and Client secret. You do not need to provide it in case you are using tenant login and password.

Example: acronis_cyber_cloud_url = https://eu2.acronis.cloud

agentless_setup YES

1 = agentless, 0 = agent-based

Determines the protection mode to use.

For more information, see Configuring the plugin.

acronis_cyber_cloud_login

YES

Tenant login name

acronis_cyber_cloud_password

YES

Tenant password
acronis_cyber_cloud_client_id OPTIONAL Your API client ID
acronis_cyber_cloud_client_secret OPTIONAL Your API client secret

encryption_password

NO

This password will be used to create an encrypted backup plan for your machine. If empty – regular backup plan will be created, encryption will not be enabled.

encryption_type

NO

This parameter will be used to create an encrypted backup plan for your machine. Available values are:

aes256

aes192

aes128

enable_backup YES 1 – assign and enable backup plan, 0 – do not assign backup plan

run_backup

YES

1 - run backup, 0 – do not run backup
retention_number_of_backups OPTIONAL Integer. Specify number of backups to keep.
retention_days OPTIONAL Integer. Specify how long to keep backups created by the backup plan.
retention_weeks OPTIONAL Integer. Specify how long to keep backups created by the backup plan.
retention_months OPTIONAL Integer. Specify how long to keep backups created by the backup plan.
backup_start_hours OPTIONAL Integer. Specify when the backup will be started.
backup_start_minutes OPTIONAL Integer. Specify when the backup will be started. If left empty, will be automatically set to 00.
backup_start_delay_window OPTIONAL String value containing single pair of integer and suffix "m" or "h", e.g. 30m or 5h
reattempts OPTIONAL Integer. Specify number of times to re-execute the backup task in case of failure.
reattempt_period OPTIONAL String value. Specify time period between individual reattempts, indicated by a single pair of integer values and 'h' or 'm' suffix, e.g. 43m or 3h.
alert_period OPTIONAL Integer. Specify number of days without a single successful backup, after which the "No successful backups for a specified number of consecutive days" alert will be triggered.

Two-factor authentication (2FA) must be disabled while using the unattended configuration script.

  1. If you would like to enable different service levels for cPanel accounts, open the following file:
/usr/local/cpanel/base/3rdparty/acronisbackup/srv/config.ini
  1. Add enable_retention_service_plans = 1

Otherwise, just skip this step, and follow the instructions from Run a script for unattended configuration: .

If this option is enabled (enable_retention_service_plans = 1), but no features are created or set, recovery points will not be shown to any cPanel accounts on this server.
  1. Under the [retention_service_plans] section, add features as shown below:
acronisbackup_1 = 1
acronisbackup_14 = 14
acronisbackup_30 = 30
    You can specify a desired number of days here, but note that the naming structure is obligatory: acronisbackup_NUMBER = NUMBER. Entering it in a different way will result in an error.
  1. Restart python service:
  2. /usr/local/cpanel/base/3rdparty/acronisbackup/scripts/acronis-backup-srv.sh restart
    If you want to add new features after the plugin has been installed and configured, see the instructions provided in the Setting up different service levels for cPanel accounts section.
  1. Run a script for unattended configuration:
/usr/local/cpanel/base/3rdparty/acronisbackup/python/lib/python3.8/site-packages/acronis_backup_ srv/bash_scripts/configurator.sh

If your configuration file is located in another folder, use the following parameter:

-c / --config 

to pass it to the script below:

> ./configurator.sh -c=/DIR/configurator.ini
> ./configurator.sh --config=/DIR/configurator.ini

The following scenarios are supported:

  • If the backup agent is not installed, the script will:

    • Install the backup agent
    • Register the backup agent in Acronis Cyber Protect Cloud
    • Apply encrypted or not backup plan (depending on the options, specified in the configurator.ini file) to the machine
    • Run the first backup (if run_backup=1)
  • If the backup agent is installed, but not yet registered in Acronis Cyber Protect Cloud, the script will:

    • Register the backup agent in Acronis Cyber Protect Cloud and update it to the latest version, if necessary
    • Apply encrypted or not backup plan (depending on the options, specified in the configurator.inifile) to the machine
    • Run the first backup (if run_backup=1)
  • If the backup agent is already both installed and registered in Acronis Cyber Protect Cloud, the script will:

    • Apply standard backup plan to the machine. Encrypted backup plan can be created and applied only in case there were no suitable plans, applied to this machine before.
    • Run the first backup (if run_backup=1)