Create a temporary directory where you will mount the installation file (.dmg).
mkdir <dmg_root>
Here, <dmg_root> is a name of your choice.
Mount the .dmg file.
hdiutil attach <dmg_file> -mountpoint <dmg_root>
Here, <dmg_file> is the name of the installation file. For example, Cyber_Protection_Agent_for_MAC_x64.dmg.
Run the installer.
sudo installer -pkg <dmg_root>/Install.pkg -target LocalSystem
open <dmg_root>/Install.app --args --unattended --fss-onboarding-auto-start
sudo <dmg_root>/Install.app/Contents/MacOS/cyber_installer -a
Detach the installation file (.dmg).
hdiutil detach <dmg_root>
mkdir mydirectory
hdiutil attach /Users/JohnDoe/Cyber_Protection_Agent_for_MAC_x64.dmg -mountpoint mydirectory
sudo installer -pkg mydirectory/Install.pkg -target LocalSystem
hdiutil detach mydirectory
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:
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.
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