Skip to content

HOWTO: Set Up pgBackRest Backup for PostgreSQL

In the PostgreSQL HA reference scenario, pgBackRest provides the backup and recovery repository. This HOWTO covers stanza initialisation, POSIX or S3-compatible repository selection, WAL archiving, retention policy, baseline backup execution, and the verified backup state consumed by the DR lifecycle contract.

What this covers:

  • pgBackRest stanza initialisation and repository configuration for POSIX and S3-compatible storage
  • WAL archiving setup and verification: confirming archive_mode, archive_command, and first WAL push
  • Baseline full backup execution and pgBackRest info output as structured DR run records

Learn this in Academy: Disaster Recovery Automation track