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

  1. Stop the ZENworks services on other ZENworks Servers in the Management Zone. For more information, see Step 2.a in the Backing Up the Embedded Sybase SQL Anywhere Database on a Windows or Linux Server.

  2. Log into 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"

    NOTE:For the Audit database, change to /opt/novell/zenworks/bin, and enter the following command:

    ./ZenworksLinuxDBRestore.sh -F "/root/dbBackup/zen_audit_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-zenmntr needs to be stopped for the database restore to be performed. Would you like to proceed [y/n]?
  6. Enter Y when the following message is displayed:

    The novell-zenserver needs to be stopped for the database restore to be performed. Would you like to proceed [y/n]?
  7. 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.

  8. Start the ZENworks services on other ZENworks Servers in the Management Zone. For more information, see Step 2.c in the Backing Up the Embedded Sybase SQL Anywhere Database on a Windows or Linux Server.