Restoring The Zenworks Data Store - Novell ZENWORKS LINUX MANAGEMENT 7.3 IR2 - ADMINISTRATION GUIDE 02-12-2010 Administration Manual

Table of Contents

Advertisement

The hostname in the
.pgpass
PostgreSQL database backup. Before you begin the backup, make sure the hostname is correct. On
the ZENworks Linux Management Primary Server, ensure that the hostname in the
file in the
zlm_dbbackup.sh
file to change the hostname to
.pgpass
1 Make sure you are logged in as root to a ZENworks Server.
2 On the ZENworks Primary Server with the local data store, enter the following at the command
prompt:
zlm_dbbackup.sh
To take a database backup from the ZENworks Secondary Server, enter the following at the
command prompt:
zlm_dbbackup.sh -H primary_server_hostname or Primary_Server_IPaddress
NOTE: Database backup operation is supported from a Secondary Server only if its PostgreSQL
database version is same or higher than that on the Primary Server. For example, you cannot run the
backup utility from a SLES 9 Secondary Server if the Primary Server is a SLES 10 server. This is
because the SLES 9 server's pg_dump utility, which is used by the backup utility, is incompatible
with the PostgreSQL database version running on the Primary Server. You have to run the backup
utility on the Primary Server.
A directory with the current date is created at
backup file, named
timestamp-zenworks-backup.tar.gz
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
file.
dbbackup.log
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
, located in
zlm_dbrestore.sh
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
file is used by the
zlm_dbbackup.sh
script is
. If the hostname is not
localhost
.
localhost
/var/opt/novell/zenworks/backup/db
/opt/novell/zenworks/sbin
ZENworks Object Store and Data Store Maintenance
script to automate the
/root/.pgpass
localhost
, is saved in this directory. For
/var/opt/novell/log/zenworks/
, to restore the Data Store from a
, edit the
. The
89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks linux management 7.3 ir2

Table of Contents