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:![](https://ckm-content.se.com/ckmContent/servlet/servlet.ImageServer?id=0158V00000AZ3fIQAT&oid=00DA0000000abSmMAI)
Set the task to run under NT AUTHORITY/SYSTEM or NT AUTHORITY\LOCAL SERVICE (use SYSTEM under advanced selection)
![](https://ckm-content.se.com/ckmContent/servlet/servlet.ImageServer?id=0158V00000AZ3fJQAT&oid=00DA0000000abSmMAI)
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.
![](https://ckm-content.se.com/ckmContent/servlet/servlet.ImageServer?id=0158V00000AZ3fKQAT&oid=00DA0000000abSmMAI)
Click Check Names
![](https://ckm-content.se.com/ckmContent/servlet/servlet.ImageServer?id=0158V00000AZ3fLQAT&oid=00DA0000000abSmMAI)
Click OK.
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.
Set the task to run under NT AUTHORITY/SYSTEM or SYSTEM . (see above)
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)
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:
- Create a BackupTasks directory under C:\Program Files (x86)\Schneider Electric\BackupTasks.
- In a text editor, open the PSEv9.x_Backup.ps1 (or .txt) script for your version.
- Edit the file for your system:
- For <$destinationDir>, enter your backup directory location.
- If you did not install PSO to the default install location, edit the <$pseBin> and <$pseData> to reflect the installed location path.
- Save the file as PSO_Backup.ps1 in the following location: C:\Program Files (x86)\Schneider Electric\BackupTasks
- In a text editor, open the Delete_Old_Backups.ps1 (or .txt) script for your version.
- Edit the file for your system:
- For <$PSEpath>, enter your backup\PSO_Backups directory location.
- Save the file as Delete_Old_Backups.ps1 in the following location: C:\Program Files (x86)\Schneider Electric\BackupTasks
- 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.
- Open Windows Task Scheduler create a new task “PSO Backups” under the Schneider Electric folder.
Set the task to run under NT AUTHORITY/SYSTEM or NT AUTHORITY\LOCAL SERVICE (use SYSTEM under advanced selection)
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.
Click Check Names
Click OK.
- Set a trigger to run once a week. We have chosen Sunday at 1am in the past.
- 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 .
- For Action, click Start a program.
- In Program/script, enter the following: C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe
- In Add arguments, enter the following:
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.
- Hit OK to save the Scheduled Task.
- 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)
- Set a trigger to run once a week. We have chosen Sunday at 1am in the past.
- 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 .
- For Action, click Start a program.
- In Program/script, enter the following: C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe
- In Add arguments, enter the following:
- 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)
Released for:Schneider Electric New Zealand
Attachment(s)
Explore more
Range:
Explore more
Range: