Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Information

It is possible to record the options chosen during ZCB installation . This recording and export backup set configuration. 

Once created, the installation recording and exported backup set configuration can be used to install ZCB via the command line on any number of other machines. Configuration can also be exported and imported via command line as well. 

Info

Command-line operations, including ZCB installation, can be automated

...

. Windows Powershell, batch scripts, Group Policies, and more

...

can all be used for automation purposes.

The steps below can be used to build automated, large-scale rollouts of pre-configured ZCB installations to any number of machines. However, the exact automation process is beyond the scope of this article

...

.

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:

Table of Contents
maxLevel2
minLevel2

Record an Installation

Step 1: Download the installer

Log into your account and download the latest installer file.

Example:

The Carbonite-Server-Backup-4.12.exe file has been downloaded to Y:\.

Image Added

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. 

Example: 

The contents of Carbonite-Server-Backup-4.12.exe have been extracted to Y:\InstallationFiles

Image Added

Image Added

Step 3: Ensure that the Java Runtime Environment is installed

ZCB requires that the Java Runtime Environment be installed on the system prior to installation. To ensure a clean recording, please install the Java Runtime Environment before installation of ZCB begins.

Please see How to Install the Java Runtime Environment for more information.

Step 4: 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.Inside are  There will be two folders located inside the directory where you extracted the installer, one containing the 32bit installer and another for the 64bit installer. 
  3. 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\<Path to some folder>\Setup.iss"
    2. The name filename or path inside the parentheses can be changed to suit your needs. 

      For example, we could

    3. Make sure that the folder where you choose to create Setup.iss in C:\Temp\ by using the command setup.exe /r /f1"C:\Temp\Setup.iss" instead.exists before installation begins. 
  5. The ZCB installation wizard will appear. 

  6. Proceed through the entire installation process.

...

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

...

Tip

Disable the "Open ZCB after installation completes" option during installation.

The last step in command-line installation and configuration, "Import the Backup Set Configuration", requires that the user interface be closed. If this option is not disabled, the user interface will open after installation and must be closed somehow (manually or by killing the process) before Import can proceed.

Example:

The 64-bit version of ZCB will be installed, and the Setup.iss recording file will be created in Y:\InstallationRecording\

Image Added

Installation complete!

Image Added

Configure Backup Sets and Export the Configuration

Step 1: Configure one or more backup sets

...

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

Example:

Two backup sets, a File System backup and a System State backup, were configured and saved.

Image Added

Step 2: Export backup set configuration

  1. Close ZCB if it is open.
  2. Open a command prompt.
  3. 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\
  4. 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.
  5. A file named ZCB.zip will be found in the folder you choice after the export process is complete.

Example:

Start export.

Image Added

Export complete!

Image Added

Prepare Other Machines for Installation

...

Ensure that the files necessary for installation and configuration of ZCB are available on all machines on which ZCB will be installed. For example, these files can be placed on a mapped network drive. They may also be copied to each machine using any method of your choice.

Each machine must have access to the following:

  1. The installation recording (. In our examples, this file is named Setup.iss) The setup files, .
  2. All of the files extracted from the installer, including the setup.exe files for 32-bit or 64-bit CSB.
  3. The ZCB.zip file that was 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.

  1. .

The Java Runtime Environment must also be installed on each machine prior to ZCB installation. Please see How to Install the Java Runtime Environment for more information. 

Example:

All files are available on a network share. The share has been mapped as the Y: drive for easy access.

Image Added

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. 

For example, if you extracted setup.exe to C:\CSB\Install\Carbonite-Server-Backup-4.11-64bit\ and Setup.iss to C:\CSB\Install\SetupRecording\, then command would be:

C:\CSB\Install\Carbonite-Server-Backup-4.11-64bit\setup.exe /s /f1"C:\CSB\Install\SetupRecording\Setup.iss"

Installation will be silent and mostly invisible. There An InstallShield setup window may appear in the task bar. Other than that, there will be no little 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"

...

ZCB will open automatically once installation is complete, 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. 

...

 

Example:

Start installation via command line.

Image Added

Installation in progress. The Task Manager has been opened to show the setup.exe process.

Image Added

Installation complete!

Import the Backup Set Configuration

  1. Wait for installation to complete.
  2. Make sure the ZCB user interface is closed.
    1. The ZCB user interface process is named javaw.exe. If necessary for automation purposes, this process can be killed via command line.
  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 ZCB.zip file 
 

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

Example:

Start the import from the command line.

Image Added

Import complete.

Image Added

Backup sets successfully imported! When CSB is next opened, the backup sets will be available.

Image Added