Examples:
To back up the database at a 1:00 a.m. every day to the
the following query:
CREATE EVENT ZENDBbackup
SCHEDULE
START TIME '1:00 AM' EVERY 24 HOURS
HANDLER
BEGIN
BACKUP DATABASE DIRECTORY '/var/'
TRANSACTION LOG TRUNCATE
END;
To back up the database at a 1:00 a.m. on the first, second, third, and fourth day of the
month to the
c:\dbbackup
CREATE EVENT ZENDBbackup
SCHEDULE
START TIME '1:00 AM' EVERY 24 HOURS ON (1,2,3,4)
HANDLER
BEGIN
BACKUP DATABASE DIRECTORY 'c:\\dbbackup'
TRANSACTION LOG TRUNCATE
END;
To back up the database to the
following query:
CREATE EVENT ZENDBbackup
SCHEDULE
START TIME '1:00 AM' EVERY 24 HOURS
HANDLER
BEGIN
DECLARE backupDir varchar(256);
DECLARE backup_stmt varchar(512);
SET backupDir = DAYNAME(now());
SET backup_stmt = 'BACKUP DATABASE DIRECTORY '|| '''/var//' ||
backupDir || ''''|| ' TRANSACTION LOG TRUNCATE';
EXECUTE IMMEDIATE backup_stmt;
END;
According to the backup schedule, the
zenworks_zone_name.log
If you want to change the database backup location or the backup schedule at a later time, see
Section 36.2.2, "Changing the Backup Schedule and Location of the External Sybase Database
Subsequent to the Initial Backup," on page
directory on Windows, execute the following query:
/var/day_of_the_week
zenworks_zone_name.db
transaction log file are created in the database backup directory.
335.
directory on Linux, execute
/var/
directory on Linux, execute the
database file and the
External Database Maintenance 315
Need help?
Do you have a question about the ZENWORKS 10 CONFIGURATION MANAGEMENT SP3 - SYSTEM ADMINISTRATION REFERENCE 10.3 16-04-2010 and is the answer not in the manual?