It is possible to record the options chosen during ZCB installation. This recording can be used to install ZCB via the command line on other machines. Configuration can also be exported and imported via command line as well.

Command-line operations can be automated in many ways, such as batch files, Windows Powershell, and more. The exact automation process is beyond the scope of this article as the infrastructure will vary greatly from one site to the next.

ZCB must be installed and configured manually on at least one machine in order to create a record of installation and configuration options.

The following steps are required:

Record an Installation

Step 1: Download the installer

Log into your account and download the latest installer file.

Step 2: Extract the setup files

Do not run the installer by double-clicking. Instead, use a zip program, such as 7-zip, to open the installer, and extract the contents to a directory of your choosing.

Two folders will be extracted: one for 32-bit ZCB, and another for 64-bit ZCB. 

Step 3: Start installation and create a recording

  1. Open an elevated command prompt using the Run As Administrator option. 
  2. Change directories to the folder where you extracted the installer.
  3. Inside are two folders, one containing the 32bit installer and another for the 64bit installer. Change directory to the folder that matches your system.
    1. For example, you'll need to change to the 32bit installation folder if you are on a 32bit machine.
  4. Enter the following command 
    1. setup.exe /r /f1"Z:\Installation\Setup.iss"
    2. The name or path inside the parentheses can be changed to suit your needs. 

      1. For example, we could create Setup.iss in C:\Temp\ by using the command setup.exe /r /f1"C:\Temp\Setup.iss" instead. 
  5. The ZCB installation wizard will appear. 

  6. Proceed through the entire installation process.

The choices you make during installation will be recorded. Take care to make choices that are generic and match the expected configuration of the other machines on which you plan to install ZCB. 

For example, you should not record an installation to a folder on the E:\ drive if not all machines will have an E:\ drive. 

Configure backup sets and Export the Configuration

Step 1: Configure one or more backup sets

Open ZCB and configure one or more backup sets.

As with the installation, take care to make choices that make sense for the other machines on which you plan to install ZCB. When in doubt, stick to the defaults, as they represent the settings that work for most users.

Save each backup set after configuration. When you are done configuring all backup sets, exit the program.

Step 2: Export configuration

  1. Open a command prompt.
  2. Change directories to the \bin\ folder in the directory where ZCB is installed.
    1. By default, this is C:\Program Files\Zmanda\Zmanda Cloud Backup\bin\
  3. Run the following command
    1. Export_ZCBConfiguration.bat C:\Export_Folder
    2. You may replace C:\Export_Folder with any directory of your choice. The configuration will be exported as a zip file to this location.
  4. A file named will be found in the folder you choice after the export process is complete.

Prepare for Installation to Other Machines

Ensure that the files necessary for installation and configuration are available on all machines on which ZCB will be installed. Each machine must have access to the following:

  1. The installation recording (Setup.iss) 
  2. The setup files, extracted from the installer. 
  3. The file created when configuration was exported

These files can be placed on a mapped network drive. They may also be copied to each machine manually or in an automated fashion using any method of your choice.

Use the Installation Record to Install ZCB

Start the installation using the following command. 

<Path to>\setup.exe /s /f1"<Path to>\Setup.iss"

Replace <Path to> with actual path to the setup.exe and Setup.iss files. The setup.exe file is found within the extracted setup files. There will be separate setup.exe files for 32bit and 64bit installations. You must provide the path to the correct setup.exe file.

Installation will be silent and invisible. There will be no feedback once the installation begins, and no windows will appear. The command prompt will immediately be available for other commands.

If you wish for the command prompt to wait until setup is complete, use this command instead. 

start /WAIT <Path to>\setup.exe /w /s /f1"<Path to>\Setup.iss"

With either command, the setup.exe process will be visible in Task Manager, and an installation log file will be created in the directory where Setup.iss is located. 

ZCB will open automatically if the "Open ZCB after installation completes" option was selected in the initial recording. If not selected, the program can be launched via start menu or desktop shortcut. 

Import the Configuration

  1. Wait for installation to complete.
  2. Make sure ZCB is closed.
  3. Open a command prompt.
  4. Change directories to the \bin\ folder in the directory where ZCB is installed.
    1. By default, this is C:\Program Files\Zmanda\Zmanda Cloud Backup\bin\
  5. Run the following command
    1. Import_ZCBConfiguration.bat C:\Export_Folder
    2. Replace C:\Export_Folder with the folder path that contains the file 

On successful completion of the import process, open the ZCB UI to make sure that all the backup sets, their respective schedules and configurations such as Backup Folder, Local & Cloud Retention period, Compression, etc are correctly imported to the new machine.