1.2 Restoring a ZENworks Server

This procedure assumes the following:

  • You have a backup of the ZENworks server’s configuration information. See Section 1.1, Backing Up a ZENworks Server.

  • If the ZENworks database resides on the ZENworks server, you have a backup of the database. See Backing Up the Embedded Sybase SQL Anywhere Database in the ZENworks Database Management Reference.

  • The bundles and policies should be replicated to and stored on the ZENworks server. If not, distribution of a policy or bundle from the restored ZENworks server fails. This can be achieved by restoring the content-repo folder that was backed up earlier for the specific Primary Server. To do this, stop the ZENworks server services and then copy the backed up content files to the content repository of the server that is to be restored. The default locations of the content repository are:

    • On a Windows Server: installation_path\zenworks\work\content-repo

    • On a Linux Server: /var/opt/novell/zenworks/content-repo/

    For more information on content repository, see “Content Repository” in ZENworks Primary Server and Satellite Reference.

  • The image files that are stored on the ZENworks Server are available on another ZENworks Server. If not, distribution of the image files from the restored ZENworks Server will fail.

IMPORTANT: When you restore the ZENworks Server and the database, you must first restore the ZENworks Server, then continue with restoring the latest backed-up ZENworks database.

To restore a ZENworks server:

  1. Reinstall the ZENworks server, using the same IP address and DNS name.

    If you do not use the same IP address and DNS name, devices that connect to the server need to reregister.

    If you have only one Primary Server connected to an external database in a zone, reinstall the Primary Server and create a dummy database during the installation. You do not need to create an internal database.

    If you have more than one Primary Server connected to an external database in a zone, reinstall the failed Primary Server as a second Primary Server. You are not prompted to configure the database during the installation.

  2. Ensure that you have read/write rights to the Novell\ZENworks\conf directory on a Windows server or the etc/opt/novell/zenworks directory on a Linux server.

  3. At a command prompt on the ZENworks Server, enter the following command:

    zman zenserver-restore path_to_backup_file_to_restore

    For example:

    zman zenserver-restore c:\zcm_backups\zone_backup.bak

    or

    zman zenserver-restore /root/zcm_backups/zone_backup.bak

  4. When prompted, enter a ZENworks administrator name and password.

  5. When prompted, enter the pass phrase (at least 10 characters) to be used for decrypting the backup file.

    This is the same passphrase that was entered to encrypt the file when backing up the server.

  6. (Conditional) If the database is located on the server, restore the database after the ZENworks Server information has been restored. For instructions, see Restoring the Embedded Sybase SQL Anywhere Database in the ZENworks Database Management Reference.

  7. Run the permissions.sh command on the Linux Primary Server to set the correct permissions.

  8. (Conditional) If you have backups of the image files, restore the files to the Novell\Zenworks\work\content-repo\images directory on a Windows server or the /var/opt/novell/zenworks/content-repo/images directory on a Linux server.

  9. Restart the ZENworks Server.