Does Disaster Recovery replication or PAReplicate Backup copy all files, even unmodified ones, during a Full Replication/Backup?
Question
When I initiate a Full replication from my DR Server, or run a Full backup via PAReplicate, does it always copy all the .\Data information each time?
Environment
12.0;12.1;12.2;12.4;12.3;12.5;12.6;12.7;13.0;13.2;13.1;14.0;13.3;14.2;14.3;14.4 Privileged Access Manager (PAM, self-hosted) Disaster Recovery Vault;Vault Server;Vault
Answer
The short answer is no it doesn't since the system has a built in mechanism that will compare the data files each time. Further explanation below:
The replication process usually happens for two major parts:
- The Metadata - The portion that's tied to the mySQL database.
- The Data - The physical file representation of the safes you see in the file explorer.
Whenever we mention "Full" during a DR Full Rep or when using /FullBackup, it's specifically referencing the Metadata portion. We make a backup of the mySQL data on the Vault and send it either to the DR Server, or the server that is running the PAReplicate /FullBackup job.
With regards to the Data portion, we will check the source and destination files for the individual safes and see if anything has been modified. If it's the same we skip, if it's different or missing we replicate.
DR Replication
Example from Full Replication in padr.log:
---
PADR0088I Triggering Full Replication.
PAREP061I Generating Full backup.
PADR0091I Performing Reset Master.
PADR0098I Performing Reset Slave.
PADR0092I Applying Full Replication Dump.
Enter replication user change password method
Leave replication user change password method
PADR0090I Starting Slave.
PADR0093I Full Replication Completed Successfully.
GetPADRWorkingDirectory returned [C:\Program Files (x86)\PrivateArk\PADR\Conf]
PAREP013I Replicating Safe System.
PAREP013I Replicating Safe Pictures.
PAREP013I Replicating Safe VaultInternal.
PAREP013I Replicating Safe Notification Engine.
PAREP013I Replicating Safe PasswordManager.
---
The lines referenced below are specifically talking about the Metadata portion:
- PAREP061I Generating Full backup.
- PADR0092I Applying Full Replication Dump.
- PADR0093I Full Replication Completed Successfully.
Once it moves to to the Data portion, the lines will say "Replicating Safe" but it's comparing its local files in the .\PrivateArk\Safes\Data from both Primary and DR to see if the file has been modified and whether it needs to copy it. If it's modified or non-existent, it will copy it. If it's the same, it will skip it.
This behavior is better displayed during the ReplicateInterval portion of the replication which by default happens once an hour.
Example in padr.log:
---
PAREP013I Replicating Safe System.
PAREP024I Skipping unmodified Safe Pictures.
PAREP024I Skipping unmodified Safe VaultInternal.
PAREP013I Replicating Safe Notification Engine.
PAREP024I Skipping unmodified Safe PasswordManager.
PAREP024I Skipping unmodified Safe PasswordManager_workspace.
---
While the wording during a full rep may imply it's replicating everything down again, it's really doing a file comparison and copying anything new it needs.
PAReplicate
For PAReplicate it's doing the same function, but it's important to know that unlike DR rep, it will show you even in a /FullBackup that it's skipping unmodified safes. Same would apply during an "incremental backup" where it may show it copying all safes if they all have changes to them (usually because of retention, add/remove, etc.)
Example of FullBackup in PAReplicate.log:
PAREP021I Replication process of Vault Replicate (First IP x.x.x.x) started.
PAREP061I Generating Full backup.
PAREP024I Skipping unmodified Safe System.
PAREP024I Skipping unmodified Safe Pictures.
PAREP024I Skipping unmodified Safe VaultInternal.
PAREP013I Replicating Safe Notification Engine.
PAREP024I Skipping unmodified Safe PVWAUserPrefs.
PAREP013I Replicating Safe PVWAConfig.