296
ZENworks 10 Configuration Management System Administration Reference
n
ov
do
cx (e
n)
16
Ap
ril 20
10
A sample schedule file to back up the database at 1:00 a.m. on the first, second, third, and
fourth day 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\d
atabase
directory on a Windows server, and in the
/opt/novell/zenworks/share/
zman/samples/database
directory on a Linux server.
3b
Enter the following command at the command prompt:
zman database-backup
complete_path_of_the_backup_directory
complete_path_of_backUpSchedule.sql
-d
SQL_function_call
For example, to back up the database to the
c:\dbbackup\
day_of_the_week
directory
on a Windows server as per the schedule in the
c:\backupschedule.sql
file, enter the
following command:
zman database-backup c:\dbbackup c:\backUpSchedule.sql -d
"DAYNAME(now())"
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
.
4
Clear the credentials stored in
Step 1
by entering the following command at the command
prompt:
zman admin-clear-credential
According to the backup schedule, the
zenworks_
zone_name
.db
database file and the
zenworks_
zone_name
.log
transaction log file are created in the database backup directory.
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