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:
The event data sets are be backed up to the UNC path \\SiteServer\ECBackups.
Only data sets that are modified are backed up.
Backed up event data sets located in \\Siteserver\ECBackups that are greater than 30 days old are deleted.
If the backup is unsuccessful, the system executes up to 15 retries.
A log file, ECBackup.log, is created the first time the scheduled backup runs and is appended to each time thereafter.
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.