Backup and Restore
This topic describes how to perform backups and restore the Operations Hub database.
Before you begin
About this task
Note: During the execution of backup and restore scripts,
all services are stopped. Services start automatically once the backup/restore is
complete.
Procedure
- Download the PowerShell scripts for backup, restore, and scheduler.
- Unzip the downloaded file to access the scripts and jar files.
- Perform an Operations Hub backup.
- Restore from an Operations Hub backup.
- Schedule a backup of Operations Hub.
Back Up the Operations Hub Database
Before you begin
Procedure
- Launch Windows PowerShell, and navigate to the location of the backup script file.
-
Execute
BackUp_OperationsHub.ps1
to perform a backup of the UAA, IQP, and WebHMI database.The Operations Hub and Proficy Authentication backup zip files are saved toC:\ProgramData
. The zip file name also includes the respective backup's datetime in theYYYYMMDD-HHMMSS
format.
Restore the Operations Hub Database
Before you begin
Note: The restore operation deletes
everything from the current system database.
Refer Backup and Restore.
Procedure
- Log in to the machine where Operations Hub is installed.
-
Copy the
db-intializer.jar
of the version you want to restore to this location:\Program Files\GE\Operations Hub\iqp-tomcat\webapps\site\WEB-INF
Note: You can skip this step if you are restoring versions 2.1 SIM 2 or later. The jar file is already available at the location. - Launch Windows PowerShell, and navigate to the location of the restore script file.
-
Enter the absolute path to the Operations Hub and Proficy Authentication backup
zip files, and execute
Restore_OperationsHub.ps1
to restore the database.For example:PS C:\Users\Administrator\Desktop> .\Restore_OperationsHub.ps1 C:\ProgramData\OPERATIONS_HUB_BKP_20211013-120559.zip C:\ProgramData\PROFICY_AUTH_2024_BKP_20211013-120559.zip
The database is restored.
Schedule Operations Hub Database Backup
Before you begin
Procedure
- Launch Windows PowerShell, and navigate to the location of the backup scheduler script file.
-
Execute
BackupScheduler_OperationsHub.ps1
to schedule a backup.
Results
C:\ProgramData
.- When you run a
.ps1
PowerShell script you might get the following message.ps1 is not digitally signed. The script will not execute on the system.
To fix it you have to run the following command to runSet-ExecutionPolicy
and change the Execution Policy setting.
This command sets the execution policy to bypass for only the current PowerShell session after the window is closed. The next PowerShell session will open running with the default execution policy. “Bypass” means nothing is blocked. No warnings, prompts, or messages are displayed.Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
- For LDAP user connectivity, make sure the Active Directory server is
accessible to both the servers:
- the server from where we take the data backup
- the server to which we restore the data
Invalid Credentials
error message appears.