10.4 Rolling Back to a Previously Installed Software Configuration State

The Rollback feature brings back the system to its previous state in case of any failure. The Rollback preference must be enabled to roll back package transactions to the time and date you specify. By default, this preference is disabled. To enable this preference, run the zac set rollback true command.

NOTE:If you clear the package history, you cannot roll back to the specified checkpoint.

If you want to roll back to a particular version of the package, that version of the package and its dependencies should be available as part of the service or the assigned bundle. If the version of the package or its dependencies is not available, the rollback fails.

To roll back to a previously installed software configuration state, run the following command:

zac rollback [options] [date | checkpoint]

For more information, see the ZENworks Command Line Utilities Reference.

An Example Use Case

The following procedure is a use case that helps you to understand how to enable the rollback preference, install a package, and then roll back to the previously installed configuration state. The package is automatically uninstalled.

  1. Enable the Rollback preference by executing the zac set rollback true command.

  2. Create a checkpoint by using the zac checkpoint-add checkpoint_name command.

  3. Install a package by executing the zac install package_name command. For more information on how to install a package, see Installing the Packages.

  4. Roll back to the previously installed configuration state by executing the zac rollback command.

    or

    If you have created a checkpoint in Step 2, then execute the zac rollback checkpoint_name command.

    For example: zac rollback "02/20/2009 15:55:56 PM"

    The date and time you specify must be from the time you enable the Rollback preference to the current time. If you do not specify the date, the current date is used. Specify the date in the mm/dd/yyyy format.

    The package installed in Step 3 is uninstalled.

  5. To ensure that the package is uninstalled, execute the zac search command and verify that the status of the package is blank.