Automated Backup of MET/CAL Version 7 Database

Create the directory structure as follows, using your drive and path of choice:

D:\Backups

On the server, start Sybase Central. 

Sign in a MT level user (Tools Connect)

Expand the database out (gray cylinder).

Click  Event.

Click  AddEvent.

 Automated Backup of MET/CAL Version 7 Database

Click on Next

 Automated Backup of MET/CAL Version 7 Database

Click Next

 Automated Backup of MET/CAL Version 7 Database

Click New.

 Automated Backup of MET/CAL Version 7 Database

Set hour and start date.

Automated Backup of MET/CAL Version 7 Database

Select the Recurrent Tab. 

Click on "Trigger on the following" and select all days of the week.

Click the OK button.

Automated Backup of MET/CAL Version 7 Database

Click Next.

Insert this code into the window:

BEGIN

DECLARE day_of_week VARCHAR(9); DECLARE backup_stmt LONG VARCHAR;

SET day_of_week = substr(dayname(today()),1,3);

SET backup_stmt = 'BACKUP DATABASE DIRECTORY ' || '''D:\\BACKUPS\\' ||

day_of_week || ''' '|| 'TRANSACTION LOG TRUNCATE '; EXECUTE IMMEDIATE backup_stmt;

 

Change your Drive and Path accordingly. Click Next.

 Automated Backup of MET/CAL Version 7 Database

Click Next.

 Automated Backup of MET/CAL Version 7 Database

Add comments, then click Finish.

 Close Sybase Central.

 

 

Chatten Sie mit unseremFluke Assistenten
Chat löschen