Unattended installation and uninstallation in macOS

This section describes how to install, register, and uninstall the Acronis Cyber Protection agent in the unattended mode on a machine running macOS, by using the command line.

To download the installation file (.dmg)

  1. In the service console, go to Devices > All devices.
  2. Click Add, and then click Mac.

To install Agent for Mac

  1. Create a temporary directory where you will mount the installation file (.dmg).

    mkdir <dmg_root>

    Here, <dmg_root> is a name of your choice.

  2. Mount the .dmg file.

    hdiutil attach <dmg_file> -mountpoint <dmg_root>

    Here, <dmg_file> is the name of the installation file. For example, Acronis_Cyber_Protection_Agent_for_MAC_x64.dmg.

  3. Run the installer.

    sudo installer -pkg <dmg_root>/Install.pkg -target LocalSystem
  4. Detach the installation file (.dmg).

    hdiutil detach <dmg_root>

Examples

  • mkdir mydirectory
    hdiutil attach /Users/JohnDoe/Acronis_Cyber_Protection_Agent_for_MAC_x64.dmg -mountpoint mydirectory
    sudo installer -pkg mydirectory/Install.pkg -target LocalSystem
    hdiutil detach mydirectory

To register Agent for Mac

Do one of the following:

  • Register the agent under a specific account, by using a user name and password.

    sudo /Library/Application\ Support/BackupClient/Acronis/RegisterAgentTool/RegisterAgent -a <Cyber Protection service address> -t cloud -u <user name> -p <password> -o register

    Here:

    <Cyber Protection service address> is the address that you use to log in to the Cyber Protection service. For example:

    <user name> and <password> are the credentials for the account under which the agent will be registered.This cannot be a partner administrator account.

  • Register the agent by using a registration token.

    sudo /Library/Application\ Support/BackupClient/Acronis/RegisterAgentTool/RegisterAgent -a <Cyber Protection service address> -t cloud -o register --token <token>

    The registration token is a series of 12 characters, separated by hyphens in three segments. You can generate one in the service console, as described in "Deploying agents through Group Policy".

    When you use a registration token, you must specify the exact datacenter address. This is the URL that you see once you are logged in to the Cyber Protection service. For example:

Examples

Registration with a user name and password.

  • sudo /Library/Application\ Support/BackupClient/Acronis/RegisterAgentTool/RegisterAgent -a https://cloud.company.com -t cloud -u johndoe -p johnspassword -o register

Registration with a token.

  • sudo /Library/Application\ Support/BackupClient/Acronis/RegisterAgentTool/RegisterAgent -a https://eu2-cloud company.com -t cloud o -register --token D91D-DC46-4F0B

If you use macOS 10.14 or later, grant the protection agent full disk access. To do so, go to Applications >Utilities, and then run Cyber Protect Agent Assistant. Then, follow the instructions in the application window.

To uninstall Agent for Mac

Run the following command:

  • sudo /Library/Application\ Support/BackupClient/Acronis/Cyber\ Protect\ Agent\ Uninstall.app/Contents/MacOS/AgentUninstall /confirm

To remove all logs, tasks and configuration settings during the uninstallation, run the following command:

  • sudo /Library/Application\ Support/BackupClient/Acronis/Cyber\ Protect\ Agent\ Uninstall.app/Contents/MacOS/AgentUninstall /confirm /purge