Alarms and events > Event Chronicle automated backup utility

Creating a batch file for Windows Task Scheduler

The automated backup utility for the DeltaV Event Chronicle can be scheduled using the Windows Task Scheduler. Use the Task Scheduler to create a new scheduled task using the ECBackup.exe file and manually add the optional parameters, or you can create a batch file with the optional parameters included. The benefit of using a batch file is that you can also create a log file to record the backup activities.

To create a batch file, use a text editor, such as Notepad, and type the command for the backup you wish to create, using the syntax described in this topic. Save this file to a local directory with a *.cmd file extension (for example, EventBackup.cmd). Use the Add Scheduled Tasks wizard to establish a schedule for the Event Chronicle backup, using the batch file as the program you want to schedule.

Example

c:\DeltaV\bin\ECBackup \\SiteServer\ECBackups  /OnlyIfModified /DeleteIfGTDays:30 /Retries:15 >>d:\ECBackups\ECBackup.log

In this example, the automated backup utility backs up the event data sets with the following conditions:

Note

The user creating the scheduled task must have the appropriate Windows and DeltaV security privileges to run the scheduled task, access the automated backup utility, and write the log file.

WARNING!

During a Task Scheduler backup, a Command Prompt window opens briefly with information about the backup if the logged-on user is one who has privileges to run the scheduled task. Do not close the Command Prompt window; if it is closed, the backup process terminates.