Get the primary cluster protected and ready for disaster recovery. Set up the storage repository, install and configure whpg-dr on the primary cluster, and start taking backups.
Steps
Set up the storage repository — provision an NFS share or S3 bucket that both clusters can reach. The primary cluster writes to it and the DR cluster reads from it.
Install and configure the primary cluster — install the
whpg-drpackage, create a backup configuration file, and runwhpg-dr configure backupto enable WAL archiving.Perform backups — run backups and restore points. At least one backup must exist before the DR cluster can be configured.
Once the primary is backing up, set up the DR cluster and choose a recovery scenario. See Choosing a recovery method.
Setting up the storage repository
Set up the storage repository that the primary cluster archives WAL to and the DR cluster restores from.
Installing and configuring the primary cluster
Install the whpg-dr package and configure backup storage on the primary WarehousePG cluster.
Performing backups
Take base backups and create restore points on the primary cluster to prepare for disaster recovery.