About this task
To perform an automatic archive backup function on a regular basis, use the Task Scheduler supplied with Windows Vista or Server 200 and the following procedure.Procedure
- Open the Control Panel.
- Click Administrative Tools.
- Double-click Task Scheduler.
The Add Scheduled Task dialog box appears.
- In the Actions Pane, click Create Basic Task.
The Create Basic Task wizard appears.
- Follow the instructions in the Create Basic Task Wizard.
- In the Start a Program window, add the .EXE file extension to the filename, followed by the command line parameters for your application, if any.
This example will back up the 3 most recent archive files on server EIGER on a daily basis. The name of the executable file is ihArchiveBackup.exe, the -s switch specifies the server name (EIGER), the -u switch specifies the user name (bsmith), the -p switch the password (pword), the -t switch a 30 second timeout for the ihArchiveBackup call, and the -n switch specifies the number of files to be backed up (3).
C:\Program Files\Proficy\Historian\Server\ihArchiveBackup.exe" -s EIGER -u bsmith -p pword -t 30 -n
- You must put a space between each switch and the associated parameter info. If you omit a space after the number of archives changes, for example, only the most recent archive is backed up.
- All command line entries are optional. If no arguments are supplied, ihArchiveBackup.exe backs up the current Historian archive.
- Click Finish.