Video-How to Perform a Full Vault Restore Using PARestore
Objective
This video goes over how to perform a full Vault restore using PARestore.
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.6;14.0;14.2 Privileged Access Manager (PAM, self-hosted) Vault
Procedure
Detailed Instructions:
- Select a vault to restore the data to (aka destination Vault). This could be a freshly built vault, or one of the DR vaults in the environment, as long as it was installed using the same set of keys as the vault that was backed up.
- ⚠️ CRITICAL WARNING: All data in the destination vault will be over-written with the restored data.
- Make sure the destination vault is up as a vault, and that no PADR services are running.
- From the Replicate server (where PAReplicate has been installed and has been backing up the vault, commonly the CPM server), log onto the destination vault via the PrivateArk Client, and enable the operator user (by unchecking the "Disable User" checkbox, and setting a new password).
- On the destination vault, add/check the following parameters in dbparm.ini:
BackupFilesDeletion=NoThis can be added in the [BACKUP] section- Ensure that the RecoveryPrvKey parameter is pointing to the recovery private key file from the Master CD:
RecoveryPrvKey=C:\...\recprv.key
- ⚠️ CRITICAL WARNING: At the end of the restore process, remove the private recovery key file from the destination vault, and any safe/folder used to copy it over. Leaving the private key on a production vault introduces a significant security risk.
- On the Replicate server, edit the Vault.ini file to point to the destination vault's IP address.
- Standard location:
<drive>:\Program Files (x86)\PrivateArk\Replicate\Vault.ini
- Standard location:
- On the Replicate server, open an Administrator CMD prompt from the Replicate folder, and run the following restore command:
PARestore vault.ini operator /FullVaultRestore- Enter the operator user password you have set above.
- This will upload the restored safe data and metadata to the destination vault and can take a while. You can monitor the size of the "Restored Safes" folder on the destination vault to approximate the progress of the upload.
-
⚠️ CRITICAL WARNING: DO NOT CLICK INSIDE THE CONSOLE WINDOW While the restore is running, do not click inside the command window or highlight any text. Doing so triggers Windows QuickEdit mode, which completely freezes the console output and pauses the underlying restore process.
- How to spot a paused console: Look at the very top of the window's title bar. If it begins with the word "Select" (e.g., Select Administrator: Windows PowerShell), the process is actively paused.
- The Risk: If left paused for too long, the user session will idle-timeout and log out, causing the entire
PARestoreprocess to fail completely, requiring you to restart from the beginning. - How to resume: If you accidentally click the window and see "Select" in the title bar, press the Enter or Esc key immediately to unpause the process.
-
Once the upload process is complete, stop the destination vault (Red light > Normal shutdown).
-
On the destination vault, open an Administrator CMD prompt from the Server folder (<drive>:\Program Files (x86)\PrivateArk\Server), and run the following command:
-
CAVaultmanager.exe RecoverBackupFiles
-
-
Once the previous command completes, from the same CMD window, run the following command:-
CAVaultmanager.exe RestoreDB -
Type YES when prompted.
-
-
On the destination vault, edit dbparm.ini and set the BackupFilesDeletion parameter back to default values:
-
BackupFilesDeletion=Yes,24,1,5,7d
-
-
Start the destination vault (green light in the PrivateArk server console) -
Log onto the destination vault via the PA Client and reset one of the PVWA's appuser and gwuser so that a PVWA can be connected to this vault to inspect the restored contents. On the selected PVWA server, create new cred files for the appuser and gwuser users.
- See instructions for resetting cred files here: https://community.cyberark.com/s/article/Cred-File-Reset-Article-List