13.1 Backing up the existing Windows or Linux Primary Server

NOTE:The migration steps should not be performed if you have configured multi-node ZooKeeper cluster.

  1. Take a reliable backup of the existing ZENworks Server. For more information, see Backing Up and Restoring the ZENworks Server and Certificate Authority in the ZENworks Disaster Recovery Reference

  2. (Conditional) Take a reliable backup of the database in any of the following scenarios:

    • You are using an internal ZENworks database.

    • You are using an external database installed on the device hosting the Primary Server and you do not plan to use the device after uninstalling the Primary Server.

    PostgreSQL: For detailed information on how to move the data from one PostgreSQL database to another PostgreSQL database, see the Oracle documentation. Later on, perform the steps described in Backing up an Embedded PostgreSQL Database on One Primary Server and Restoring it on another Primary Server in the ZENworks Database Management Reference.

    To take a backup of an external database, see the documentation for the database.

  3. Take a reliable backup of the content-repo directory of the Primary Server. The content-repo directory is located by default in the %ZENSERVER_HOME%\work directory on Windows and in the /var/opt/microfocus/zenworks/ on Linux.

  4. Ensure that the images directory located within the content-repo directory has been successfully backed up.

  5. (Optional) If there are any TFTP customizations related to imaging, then back up the TFTP files. The tftp directory is located in the /srv/ folder on the Linux server and in %ZENWORKS_HOME%\share\ on the Windows server.

  6. Disconnect the device from the network.