The DeltaV Continuous Historian > Automated backup utility

Create a batch file for Windows Task Scheduler

The automated backup utility for the DeltaV Continuous Historian can be scheduled using the Task Scheduler in Windows. Use the Task Scheduler to create a new scheduled task that runs the HistorianBackup.exe file and manually adds optional parameters, or you can create a batch file with the optional parameters included. Note that the Continuous Historian Administration application includes a Schedule DeltaV Continuous Historian Data Backup option. Evaluate this option before deciding to use a batch file and the Task Scheduler.

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 (CHBackup.cmd, for example). Use the Add Scheduled Tasks wizard to establish a schedule for backing up the DeltaV Continuous Historian, using the batch file as the program you want to schedule.

Example

c:\DeltaV\bin\HistorianBackup \\SiteServer\CHBackups /CreateNewActive
      /OnlyIfModified /DeleteIfGTDays:30 /Retries:15 /LogFile:CHBackup.log

In this example, the DeltaV Continuous Historian data sets are backed up 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.

Important

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.