{}

Our Brands

Impact-Company-Logo-English Black-01-177x54

Welcome to the Schneider Electric Website

Welcome to our website.
Search FAQs
How to automatically backup a PowerSCADA Expert system

Issue
Automatic backups are required for PowerSCADA Expert

Product Line
PowerSCADA Expert 8.2

Environment
Windows Task Scheduler

Cause
Automatic backups are not natively implemented within PowerSCADA Expert.

Resolution
This attached document includes the tasks required to create automated backups of a PSE system.

You can automate the backing up of PowerSCADA Expert (PSE) to include most of the PSE components that will be required to restore a system. PSE passwords and device profiles cannot be automatically backed up. They must be backed up manually. You can find the required procedure for this process starting on page 9.

.NET 4.5.2 and WMF 5.1 are required in order to run the provided scripts. WMF 5.1 is available as an offline windows update installer.

To automate the PSE backup process:

  1. Create a BackupTasks directory under C:\Program Files (x86)\Schneider Electric\BackupTasks.
  2. In a text editor, open the PSEv9.x_Backup.ps1 (or .txt) script for your version.
  3. Edit the file for your system:
    1. For <$destinationDir>, enter your backup directory location.
    2. If you did not install PSO to the default install location, edit the <$pseBin> and <$pseData> to reflect the installed location path.
  4. Save the file as PSO_Backup.ps1 in the following location: C:\Program Files (x86)\Schneider Electric\BackupTasks
  5. In a text editor, open the Delete_Old_Backups.ps1 (or .txt) script for your version.
  6. Edit the file for your system:
    1. For <$PSEpath>, enter your backup\PSO_Backups directory location.
  7. Save the file as Delete_Old_Backups.ps1 in the following location: C:\Program Files (x86)\Schneider Electric\BackupTasks
  8. Run PowerShell as Administrator and set the execution policy with the following cmdlet: Set-ExecutionPolicy Bypass.  Select “A” to execute all steps of the change. Note: This might be overridden by group policy, but the new scripts seem to work on the server.
  9. Open Windows Task Scheduler create a new task “PSO Backups” under the Schneider Electric folder.

Image1

Set the task to run under NT AUTHORITY/SYSTEM or NT AUTHORITY\LOCAL SERVICE (use SYSTEM under advanced selection)
Image2
Set the task to run under NT AUTHORITY/SYSTEM or NT AUTHORITY\LOCAL SERVICE (use SYSTEM under advanced selection)
Click the Change User or Group… button. Type “system” in the “Enter the object name” area. The “From this location” selection should be set to the local server.
Image3
Click Check Names
Image4
Click OK.
Image5

  1. Set a trigger to run once a week. We have chosen Sunday at 1am in the past.

Image6

  1. Define the new action: Note: Please verify these file locations. The text of the program/script and argument can be found in the Scheduled task – Program and Argument Text.txt file .
    1. For Action, click Start a program.
    2. In Program/script, enter the following: C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe
    3. In Add arguments, enter the following:

-noninteractive -nologo -file "C:\Program Files (x86)\Schneider Electric\BackupTasks\PSOv9.0_Backup.ps1"
Tip: You can manually run the scheduled task to confirm that it copied the PSO components to your backup location. Doing so will also help you verify whether you can access the backup
location. This process can take 2 hours or more for 40GB of files.
Image10

  1. Hit OK to save the Scheduled Task.
  2. Open Windows Task Scheduler create a second new task “PSO_Delete_Old_Backups” under the Schneider Electric folder.


Set the task to run under NT AUTHORITY/SYSTEM or SYSTEM . (see above)

  1. Set a trigger to run once a week. We have chosen Sunday at 1am in the past.

  1. Define the new action: Note: Please verify these file locations. The text of the program/script and argument can be found in the Scheduled task – Program and Argument Text.txt file .
    1. For Action, click Start a program.
    2. In Program/script, enter the following: C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe
    3. In Add arguments, enter the following:

-noninteractive -nologo -file "C:\Program Files (x86)\Schneider Electric\BackupTasks\Delete_Old_Backups.ps1"

  1. Hit OK to save the Scheduled Task.



Note: Some procedures in this document cite scripts you can use to automate the backup and restore process. These scripts are included in the below as .txt files. When downloading these files they need to be saved as .ps1 files to make them power shell scripts. Only download the script for the respective version of PSE (i.e. 8.1 or 8.2 not both)

Schneider Electric Egypt and North East Africa

Attachment(s)
PSEv8.1_Backup.txt [2.57 KB]
PSEv8.1_Restore.txt [2.28 KB]
Scheduled task - Program and Argument Text.txt [485 Bytes]
Delete_Old_Backups.txt [772 Bytes]
PSOv9.0_Backup.txt [3.81 KB]
PSOv9_Restore.txt [2.41 KB]
Explore more
Range:
Articles that might be helpful Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Range: