Setting up different service levels for cPanel accounts

To enable different service levels for cPanel accounts, the WHM administrator needs to create plugin features to define the number of days, for which available recovery points will be shown in the cPanel user interface.

For example, suppose that you have 3 cPanel accounts: Account1, Account2, Account3. You can create 3 features:

1. Feature1: to show recovery points created for the last day

2. Feature2: to show recovery points created for the last 14 days

3. Feature3: to show recovery points created for the last 30 days

If you assign Feature1 to Account1 in the WHM Feature manager, the corresponding cPanel account will see only recovery points created for the last day in its plugin UI. Account2 with Feature2 will be able to access recovery points created for the last 14 days, Account3 with Feature3 - recovery points created for the last 30 days.

You can create plugin features in several ways.

Create all the features automatically during plugin configuration

This option works only for the initial plugin installation and configuration. If the plugin is already installed and configured, use the second option - Create WHM features manually.

  1. Log on to the host as a root user, then open:

    /usr/local/cpanel/base/3rdparty/acronisbackup/srv/config.ini

  2. Add enable_retention_service_plans = 1
  3. 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.
  4. Under the [retention_service_plans] section, add features like shown below:
  5. acronisbackup_1 = 1
    acronisbackup_14 = 14
    acronisbackup_30 = 30

  6. Restart python service:
  7. /usr/local/cpanel/base/3rdparty/acronisbackup/scripts/acronis-backup-srv.sh restart

  8. Perform plugin configuration.
The naming structure is obligatory: acronisbackup_NUMBER = NUMBER. Entering it in a different way will result in an error.

Create WHM features manually

  1. Log on to the host as a root user
  2. Run the following command:
  3. vim /usr/local/cpanel/whostmgr/addonfeatures/acronisbackup_1

    where acronisbackup_1 is a file name for the feature.

  4. Add content as shown in the below example:
  5. acronisbackup_1: Acronis Backup 1 Days Retention

    The second part is a human readable name of the feature that the WHM admin will see in the Feature manager.

  6. Open

    /usr/local/cpanel/base/3rdparty/acronisbackup/srv/config.ini

  7. Add enable_retention_service_plans = 1
  8. Restart python service:

    /usr/local/cpanel/base/3rdparty/acronisbackup/scripts/acronis-backup-srv.sh restart

To create a feature without limitations

All available recovery points will be visible for users who have access to the feature.
  1. Run the following command:

    vim /usr/local/cpanel/whostmgr/addonfeatures/acronisbackup_0

  2. Add content per the following example:

    acronisbackup_0: Acronis Backup Unlimited

To assign created features to cPanel accounts

  1. In the WHM UI, click Feature Manager.
  2. Select a feature list and click Edit.
  3. Select a check box with the required feature name (for example - Acronis Backup 30 Days Retention).
  4. Click Save.
If you uninstall the plugin, all features will be removed automatically.