ZENworks Object Store and Data Store Maintenance
89
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
The hostname in the
.pgpass
file is used by the
zlm_dbbackup.sh
script to automate the
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
/root/.pgpass
file in the
zlm_dbbackup.sh
script is
localhost
. If the hostname is not
localhost
, edit the
.pgpass
file to change the hostname to
localhost
.
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
/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
Summary of Contents for ZENWORKS LINUX MANAGEMENT 7.3 IR2
Page 4: ...4 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 22: ...22 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 34: ...34 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 40: ...40 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 44: ...44 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 68: ...68 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 84: ...84 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 100: ...100 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 102: ...102 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 105: ...Registering Devices 105 novdocx en 7 January 2010 key yum_service...
Page 106: ...106 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 124: ...124 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 132: ...132 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 182: ...182 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 206: ...206 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 208: ...208 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 216: ...216 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 264: ...264 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 270: ...270 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 290: ...290 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 320: ...320 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 324: ...324 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 352: ...352 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 406: ...406 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 478: ...478 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 480: ...480 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 482: ...482 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 494: ...494 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 508: ...508 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 520: ...520 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 524: ...524 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 530: ...530 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 532: ...532 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 544: ...544 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 546: ...546 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 600: ...600 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 606: ...606 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 646: ...646 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 662: ...662 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 666: ...666 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 672: ...672 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 678: ...678 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...
Page 684: ...684 Novell ZENworks 7 3 Linux Management Administration Guide novdocx en 7 January 2010...