4.2 Restoring the Embedded Sybase SQL Anywhere Database on a Linux Server

  1. Stop all the ZENworks Services on all the ZENworks Servers in the Management Zone.

    • On Windows: Do the following

      1. Execute the following command at the server prompt:

        novell-zenworks-configure -c Start

      2. Enter the number next to the Stop action.

    • On Linux: Do the following:

      1. Execute the following command at the server prompt:

        /opt/novell/zenworks/bin/novell-zenworks-configure -c Start

      2. Enter the number next to the Stop action.

  2. Log in to the ZENworks server as root.

  3. Change to /opt/novell/zenworks/bin, and enter the following command:

    ./ZenworksLinuxDBRestore.sh -F "/root/dbBackup/zenworks_zone_name.db"

  4. Enter Y when the following message is displayed:

    The backup database file will OVERWRITE the existing database. Is that OK? [y/n]
    
  5. Enter Y when the following message is displayed:

    The novell-zenloader needs to be stopped for the database restore to be performed. Would you like to proceed [y/n]?
    

    The backup file is copied to /var/opt/novell/zenworks/database, and the restore log file to /var/opt/novell/log/zenworks/dbrestore.log. The database is restored.

  6. Start all the ZENworks Services on all the ZENworks Servers in the Management Zone.

    • On Windows: Do the following

      1. Execute the following command at the server prompt:

        novell-zenworks-configure -c Start

      2. Enter the number next to the Start action.

    • On Linux: Do the following:

      1. Execute the following command at the server prompt:

        /opt/novell/zenworks/bin/novell-zenworks-configure -c Start

      2. Enter the number next to the Start action.