Note

You are viewing the documentation for an older release of Interworx (8.1). To see documentation for the current generally available release of Interworx, click here: 8.2.

How To: Install and Use the Acronis Plugin for InterWorx

Note

Acronis does not currently support all AlmaLinux and Rocky Linux versions. Supported OS versions can be found at the official Acronis documentation here.

Prerequisites

  • User must be an administrator within the customer group

  • The following ports must be open on the server: 443, 8443, 44445, 5060, and 7770-7800

How to Install the Acronis Plugin

  1. Log in to the server at the command line as root, either via SSH or from the terminal

  2. Run:

    yum install interworx-plugin-acronis
    

How to Activate the Acronis Plugin

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. In NodeWorx, navigate to NodeWorx > Plugins

    plugin page
  3. Under Backup/Restore, click the Pencil next to Acronis. This opens the Edit Plugin form

    acronis plugin acronis edit form
  4. Update the required settings:

    • Status: Enables or disables the plugin

    • Username: The Acronis username

    • Password: The user’s password

    • URL: The Acronis site

  5. Click Save

  6. Refresh the browser. After doing soa new menu item named ‘Acronis’ will be listed under the Server tab

  7. In NodeWorx, navigate to Server > Acronis

    acronis enable backup
  8. Under Enable Backup, click Enable. This automatically installs the backup agent and enables backups

    • If the backup agent has been installed manually, clicking Enable Backup will make sure that all configuration files are located in the right directory

  9. Once the Installation is complete, click the on/off toggle next to Backup. This will set up the Acronis backup plan for the server

    acronis dashboard

CLI

Interworx CLI Utility

The CLI utility provides the same functionality as the web interface. More information on how to use the InterWorx CLI can be found here.

Other Commands

  • To install the backup agent:

    ~iworx/bin/php /home/interworx/plugins/acronis/bin/acronisinstaller.php --install
    
  • To uninstall the backup agent:

    ~iworx/bin/php /home/interworx/plugins/acronis/bin/acronisinstaller.php --uninstall
    

Plugin Functionality

The Acronis plugin for InterWorx provides the following features:

NodeWorx

  • Single-signon to Acronis Backup Cloud

  • Run backup

  • Turn backup on/off

  • View last backup status & time

  • View when the next backup is scheduled

  • View logs associated with acronis backups

  • Traverse & restore files/folders

  • Restore databases

SiteWorx

  • Traverse & restore files/folders

  • Restore databases

Additional information

Full Account Restore

Restoring SiteWorx Account Structure and Settings

Note

This step includes the basic email and domain configuration, as well as databases schema and privileges. It recreates the basic structure of the SiteWorx account.

It does not include the email files, domain data, or database tables.

This step is required if the SiteWorx account no longer exists on the server. If the account does not need to be recreates, the step can be skipped.

  1. In NodeWorx, navigate to Server > Acronis Backup

    acronis dashboard
  2. Click Backups. This opens the backup list

    backup list
  3. Click the backup date. This opens a file directory

    file list
  4. Navigate to files > chroot > home > .acronis_tmp

    backup file list
  5. Check the box next to the backup file

  6. Click Recover. This opens the confirmation popup

    confirmation popup
  7. Select the checkbox and click Start recovery. This recovers the backup file, and sends it to /chroot/home/.acronis_tmp

  8. To import the backup file, log in to the server at the CLI as root, either via SSH or from the terminal

  9. At the CLI, run the following command, replacing {ip-address} and {archive-file} with the corresponding information

    Warning

    This will delete the account if it already exists

    /usr/local/interworx/bin/import.pex --control-panel siteworx --ipv4 {ip-address} --archive /home/.acronis_tmp/{archive-file} --force
    

    Example:

    /usr/local/interworx/bin/import.pex --control-panel siteworx --ipv4 123.45.67 --archive /home/.acronis_tmp/example.com+structure-Apr.23.2024-02.00.08.tgz --force
    

Restoring Database Tables

  1. In NodeWorx, navigate to Server > Acronis Backup

    acronis dashboard
  2. Click Backups. This opens the backup list

    backup list
  3. Click the backup date. This opens a file directory

    file list
  4. Click Databases. This opens a list of account databases

    database list
  5. Check the box next to the database

  6. Click Recover. This opens a confirmation popup

    confirmation form
  7. Click Start recovery

Restoring Email and Domain files

  1. In NodeWorx, navigate to Server > Acronis Backup

    acronis dashboard
  2. Click Backups. This opens the backup list

    backup list
  3. Click the backup date. This opens a file directory

    file list
  4. Navigate to files > chroot > home

    acronis file list
  5. Check the box next to the user account

  6. Click Recover. This opens a confirmation popup

    confirmation box
  7. Select the checkbox and click Start recovery. This restores the home directory for the domain, located at /home/{unixuser}, replacing {unixuser} with the corresponding information

If the UID and or GID of the account has changed, the account user and group ownership may need to be corrected.

  1. Log in to the server at the CLI as root, either via SSH or from the terminal

  2. At the CLi, run the following commands, replacing {unixuser}, {incorrect UID} and {incorrect GID} with the corresponding information:

    find /chroot/home/{unixuser} -user {incorrect UID} -exec chown -h {uniuser} {} \;
    
    find /chroot/home/{unixuser} -group {incorrect GID} -exec chgrp {unixuser} \;
    

Troubleshooting

  • If authentication fails, make sure that the user meets the requirements for using the plugin:

    • User group: customer

    • User role: admin

  • If encountering issues when activating the plugin, make sure that the data center URL is correct, and that it does not contain a trailing /

    • For example, https://cloud.acronis.com will work, while https://cloud.acronis.com/ may result in an error

    • Also, make sure to use https:// vs http://

  • The required packages should install automatically when enabling the plugin. However, if the installation fails, it is recommended to verify manually that the following packages are installed:

    • Packages for building kernel modules: kernel-devel elfutils-devel elfutils-libelf-devel

      • Make sure that the package version matches the kernel version:

        yum list installed | grep kernel-devel
        cat /proc/version
        
      • If versions do not match, update the kernel and reboot:

        yum update kernel
        reboot
        
    • GNU Compiler Collection (GCC) compiler system

      • GCC version must be the same as the version used to compile the kernel:

        Gcc -v
        cat /proc/version
        
    • Make tool

      make -v
      

More detailed information and troubleshooting steps can be found in the Acronis Knowledge Base.