Import/Export the Backup Agent Configuration as Template
This article describes how you can use MSP360 (CloudBerry) Backup CLI to import and/or export your Backup Agent configuration as a template (for example, when you need to apply an existing Backup Agent configuration to a new MSP360 (CloudBerry) Backup instance).
Export Template
Execute the exportConfig command with the "-f" parameter to save your MSP360 (CloudBerry) Backup template to a specified location:
C:\Program Files\CloudBerryLab\CloudBerry Backup>cbb exportConfig -f "C:\Config\config.cbbconfiguration"
Ensure that the specified directory exists before executing this command. This command cannot overwrite an existing file, and specifying such a file will result in an error.
Optionally, you can specify the following parameter to remove all encryption passwords that were specified for your backup plans from the created template file.
- -rp Removes all encryption passwords from the template file.
Without specifying this parameter, you will be required to enter these passwords to be able to import a template that has any encryption passwords stored in it. If you want to include encryption passwords for the backup/restore plans in the exported template package, specify the following parameter:
- -ip yes Includes encryption passwords in the exported template.
Import Template
Execute the importConfig command with the "-f" parameter to import a template from a specified file:
C:\Program Files\CloudBerryLab\CloudBerry Backup>cbb importConfig -f "C:\Config\config.cbbconfiguration"
Please ensure that the specified file exists before executing this command.
When importing a template made from an MSP360 (CloudBerry) Backup instance installed on another computer, you can specify the following parameter to ensure that imported storage accounts will store backups in a different directory than the one used by storage accounts on another computer.
- -m Replaces the backup prefix in imported storage accounts with the current machine name.
Listing Backup Prefixes
You can find out which backup prefixes are available for a specific account by executing the prefixes command with the "-account" parameter as follows.
cbb prefixes -account "accountName"
See Restore from Another Computer for more information about using backup prefixes.