Diagnostic step 1
Stop using rsync on the live cluster. Create a consistent base backup using pg_basebackup or take an LVM/ZFS snapshot while pausing writes or using the database's online backup facility.
Generated Oct 29, 2026, 9:46:59 AM
Stop using rsync on the live cluster. Create a consistent base backup using pg_basebackup or take an LVM/ZFS snapshot while pausing writes or using the database's online backup facility.
Set up continuous WAL archiving with a robust archive_command that writes WAL segments atomically (use tempfile+rename pattern) to remote storage.
To repair replica: promote to recovery from a fresh base backup plus continuous WAL stream or rebuild replica using pg_basebackup from primary.
Implement monitoring/alerts for replication slot size and archive_command failures so WAL accumulation is detected early.