Data Restore11 minutes to read
In the event of a disaster or data loss, you can restore the backed up data to the PAM360 database. To restore the data, PAM360 provides scripts. In the following sections, you will learn in detail, the steps for data restoration for the below databases: 1. Steps Required for PAM360 with PostgreSQLThe following steps are applicable for the default installation of PAM360 with PostgreSQL as the backend database.
1.1 For Windows
1.2 For Linux
Note: Before executing the updateserverconf.sh command, ensure that x11 is enabled on your PAM360 server.
2. Steps Required for PAM360 with MS SQL Server2.1 PrerequisitePAM360 uses SQL server's encryption mechanism to encrypt the data. The encryption master key will be stored under <PAM360 Installation Folder>/conf directory with the name masterkey.key. For security reasons, during installation of MS SQL, we recommend moving the encryption key from the default location to a secure location and use it while performing disaster recovery. 2.2 ProcedureStep 1Install another instance of PAM360 with MS SQL server as the backend. You are now specifying a new instance of MS SQL server where the backup has to be restored. Ensure that the new instance of MS SQL server is configured with SSL. For details, refer steps 10.1.1 to 10.1.3 under MS SQL Configuration. Step 2Copy the PAM360 backup file from the SQL server. By default, it will be present under the <MSSQL_installation_folder>/Backup folder with a file name in the following format: pam360backup_pam360version_backupdate-time.bak (For example, pam360backup_4500_110721-1159.bak). Click here to learn more about taking backups of your PAM360 data. The backups taken from the MS SQL database will be stored as a .bak file in the host, where the SQL server is running. Step 3Launch "Microsoft SQL Server Management Studio" (in the machine where the backed up data are to be restored - that is, another instance of SQL server) and connect to the Database Engine. Step 4Right-click on Databases and the click Restore Database from the displayed menu. Step 5In the Restore Database window, choose the option From device and click [...] button to browse the PAM360 backup file. Step 6In the Specify Backup window that opens up, choose the option File as the Backup media and click Add. Step 7In the Locate Backup File window, select the PAM360 backup file and click OK. Step 8
Step 9Now, you need to restore the Master Key. As mentioned in the prerequisite section above, by default, the encryption master key will be stored under <PAM360 Installation Folder>/conf directory in the file named masterkey.key. For security reasons, if you have moved the file to some other secure location, identify that. Open the masterkey.key file and copy the password. Step 10
Example:
Execution of the above queries will help decrypt the data. Step 11Navigate to <PAM360_Installation_Folder>/conf folder, edit manage_key.conf and specify the location of pam360_key.key (encryption master key). PAM360 requires the pam360_key.key file accessible with its full path when it starts up every time. After a successful start-up, it does not need the key anymore and so the device with the key file can be taken offline.
| |