Skip to content
aj-geddes avatar

Data Replication Setup

Guide to PostgreSQL primary-standby replication for high availability and disaster recovery, with reference guides for logical replication.

CCM score
35 of 100
skills.sh installs
426
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers master-slave and multi-master setups, read replicas, multi-region replication, failover automation, and cross-region backup strategies
  • Includes a PostgreSQL quick start with postgresql.conf WAL settings, a replication role, pg_hba.conf access rules, and WAL archiving
  • Provides three reference guides: primary-standby setup, logical replication, and master-slave setup
  • Designed for teams configuring database high availability, replication monitoring, and disaster recovery planning

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill data-replication-setup -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Data Replication Setup

Table of Contents

Overview

Configure database replication for disaster recovery, load distribution, and high availability. Covers master-slave, multi-master replication, and monitoring strategies.

When to Use

  • High availability setup
  • Disaster recovery planning
  • Read replica configuration
  • Multi-region replication
  • Replication monitoring and maintenance
  • Failover automation
  • Cross-region backup strategies

Quick Start

PostgreSQL - Configure Primary Server:

-- On primary server: postgresql.conf
-- wal_level = replica
-- max_wal_senders = 10
-- wal_keep_size = 1GB

-- Create replication user
CREATE ROLE replication_user WITH REPLICATION ENCRYPTED PASSWORD 'secure_password';

-- Allow replication connections: pg_hba.conf
-- host    replication     replication_user   standby_ip/32    md5

-- Enable WAL archiving for continuous backup
-- archive_mode = on
-- archive_command = 'test ! -f /archive/%f && cp %p /archive/%f'

Reference Guides

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Databases, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the data-replication-setup skill help me do?

It configures database replication for high availability and disaster recovery, covering master-slave replication, multi-master setups, read replicas and replication monitoring. The skill includes a PostgreSQL quick start for setting up a primary server with a replication user and WAL archiving.

How do I install the data-replication-setup skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill data-replication-setup -y in your project. Once installed, the agent can guide you through replication setup for your database.

Where does data-replication-setup stand in the Databases category on Claude Marketplaces?

It sits in the Databases category alongside supabase-postgres-best-practices and several Prisma skills such as prisma-client-api and prisma-database-setup. It focuses on replication topology, failover and cross-region backup rather than schema or query work.

When should I use data-replication-setup for failover and disaster recovery?

Use it when you plan high availability, read replica configuration, multi-region replication, failover automation or cross-region backup strategies. It also covers ongoing replication monitoring and maintenance.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Data Replication Setup

More Databases