Restoring The Zenworks Data Store - Novell ZENWORKS LINUX MANAGEMENT 7.2 IR2 - ADMINISTRATION GUIDE 09-25-2008 Administration Manual

Table of Contents

Advertisement

A directory with the current date is created at /var/opt/novell/zenworks/backup/db.
The backup file, named timestamp-zenworks-backup.tar.gz, is saved in this directory.
For example, if the backup is taken on August 23, 2005 at 11:30 p.m., the following directory and
file are created:
/var/opt/novell/zenworks/backup/db/2005-08-23/23:30:00-zenworks-
backup.tar.gz
Log information about the backup operation is saved in the /var/opt/novell/log/
zenworks/dbbackup.log file.
The utility does not require any user interaction. If desired, you can schedule the database backup
operation as a cron job.

9.2.4 Restoring the ZENworks Data Store

This section applies only if you are using the PostgreSQL database for your Data Store.
If necessary, you can restore the ZENworks Data Store from a backup you created. You use
zlm_dbrestore.sh, located in /opt/novell/zenworks/sbin, to restore the Data Store
from a backup.
The restore operation drops the existing database and creates a new one.
To restore the ZENworks Data Store:
1 On all ZENworks Servers, stop the ZENworks Server (novell-zenserver) and the ZENworks
Loader (novell-zenloader) services by using the following commands:
/etc/init.d/novell-zenserver stop
/etc/init.d/novell-zenloader stop
Because all ZENworks Servers access the Data Store, you need to stop these services on all
ZENworks Servers on your system. You must also ensure that external connections, if any, to
the database are terminated.
2 Make sure you are logged in as root to a ZENworks Server.
3 On the ZENworks Primary Server, enter the following at the command prompt:
zlm_dbrestore.sh -F path_to_the_backup_file
NOTE: If you have taken a database backup from the Secondary server, you can restore the
database only if the PostgreSQL database version is same on both the Primary and Secondary
servers.
Make sure that the -F option includes the backup file's complete path. For example:
zlm_dbrestore.sh -F /var/opt/novell/zenworks/backup/db/2005-08-23/23:30:00-
zenworks-backup.tar.gz
4 If prompted, enter Y to stop the ZENworks Server (novell-zenserver).
5 If prompted, enter Y to stop the ZENworks Loader (novell-zenloader).
6 When prompted to supply a password to drop the database, enter the password configured in /
etc/opt/novell/zenworks/hibernate.cfg.xml that is used for authenticating the
PostgreSQL database.
ZENworks Object Store and Data Store Maintenance
87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks linux management 7.2ir2

Table of Contents