300
ZENworks 10 Configuration Management System Administration Reference
n
ov
do
cx (e
n)
16
Ap
ril 20
10
To immediately back up the database, continue with
Step 4
. To schedule the backup to run at a
specific time every day or on specific days of a month, skip to
Step 5
.
4
(Conditional) To immediately back up the database to the network location on the remote
machine, enter the following command at the command prompt:
zman database-backup
database_backup_directory
For example:
zman database-backup /root/zenworks_dbbackup
5
(Conditional) To schedule the backup:
5a
Create a schedule file,
backupschedule.sql
, with the following contents:
CREATE EVENT
backup_schedule_name
SCHEDULE
specify_the_schedule
A sample schedule file to back up the database at a 11 p.m. every day is as follows:
CREATE EVENT ZENDBBackup
SCHEDULE
START TIME '11:00 PM' EVERY 24 HOURS
A sample schedule file to back up the database at 1:00 a.m. on the first, second, third, and
fourth days of the month is as follows:
CREATE EVENT ZENDBBackup1
SCHEDULE
START TIME '1:00 AM'
ON (1,2,3,4)
Sample schedule files are available in the
ZENworks_Installation_directory:\Novell\Zenworks\
share\zman\samples\database
directory.
5b
Enter the following command at the command prompt:
zman database-backup
database_backup_directory
c:\backUpSchedule.sql -
d
SQL_function_call
For example:
zman database-backup /root/zenworks_dbbackup c:\backUpSchedule.sql -d
SQL_function_call
For more information about this command, view the zman man page (man zman) on the
device, or see
zman(1)
in the
ZENworks 10 Configuration Management Command Line
Utilities Reference
.
According to the backup schedule,
zenworks_
zone_name
.db
and
zenworks_
zone_name
.log
are
created in the network location on the remote machine (
/root/zenworks_dbbackup
). The backed-
up database is stored in
zenworks_
zone_name
.db
. The result of the database backup is logged in
zenworks_
zone_name
.log
.