Embedded Database Maintenance
301
n
ov
do
cx (e
n)
16
Ap
ril 20
10
If you want to change the database backup location or the backup schedule at a later time, review the
following sections:
“Changing the Backup Location of the Embedded Sybase SQL Anywhere Database
Subsequent to the Initial Backup” on page 334
“Changing the Backup Schedule of the Embedded Sybase SQL Anywhere Database
Subsequent to the Initial Backup” on page 335
34.4 Restoring the Embedded Sybase SQL
Anywhere Database
The following sections provide information on restoring the backed-up embedded Sybase SQL
Anywhere database:
Section 34.4.1, “Restoring the Embedded Sybase SQL Anywhere Database on a Windows
Server,” on page 301
Section 34.4.2, “Restoring the Embedded Sybase SQL Anywhere Database on a Linux Server,”
on page 302
IMPORTANT:
If the database is located on a ZENworks Server, you must first restore the
ZENworks Server, then restore the ZENworks database. Ensure that you have backed up the
ZENworks Server and the database (at least once). You can also back up the ZENworks database on
a regular basis. However, you can back up the server and the database in any order. For more
information about backing up and restoring the ZENworks Server, see
Chapter 10, “Backing Up and
Restoring the ZENworks Server and Certificate Authority,” on page 119
.
34.4.1 Restoring the Embedded Sybase SQL Anywhere
Database on a Windows Server
1
At the Windows server prompt, go to
ZENworks_Installation_directory:
\novell\zenworks\bin
, and enter the following
command:
ZenworksWindowsDBRestore.bat
ZENworks_Installation_directory:
\Novell\Zenworks\Database
c:\dbBackup\zenworks_
zone_name
.db c:\dbBackup\zenworks_
zone_name
.log
2
Press any key when the following message is displayed:
Before proceeding, make sure you have backed up any files in:<Installation
directory>:\Novell\ZENworks\database Press any key to continue.
3
Enter
Y
when the following message is displayed:
The following services are dependent on the Novell ZENworks Datastore
service. Stopping the Novell ZENworks Datastore service will also stop
these services: Novell ZENworks Loader, Novell ZENworks Agent Service,
Novell ZENworks Server. Do you want to continue this operation? (Y/N) [N]:
4
Press any key when the following message is displayed:
The Novell ZENworks Datastore service was stopped successfully. Press any
key to continue...
5
Enter
Yes
when the following message is displayed: