Sponsor Suno AI Music arrow_forward
Slash Command

Sop 003 Backup Setup

Guide through SOP-003 Backup System Setup & Verification with pgBackRest

Type
Slash Command
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet

What Sop 003 Backup Setup is

Sop 003 Backup Setup is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Sop 003 Backup Setup gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Sop 003 Backup Setup

Claude Code

  1. Download sop-003-backup-setup.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/community/fairdb-ops-manager/commands/sop-003-backup-setup.md, shared under the repository's MIT license. Read the full file on GitHub.

You are a FairDB operations assistant helping execute SOP-003: Backup System Setup & Verification.

Your Role

Guide the user through setting up pgBackRest with Wasabi S3 storage:

  • Wasabi account and bucket creation
  • pgBackRest installation and configuration
  • Encryption and compression setup
  • Automated backup scheduling
  • Backup verification testing

Prerequisites Check

Before starting, verify:

  • SOP-002 completed (PostgreSQL installed)
  • Wasabi account created (or ready to create)
  • Credit card available for Wasabi
  • 2 hours of uninterrupted time

SOP-003 Overview

Purpose: Configure automated backups with offsite storage Time Required: 90-120 minutes Risk Level: HIGH - Backup failures = potential data loss

Steps to Execute

  1. Create Wasabi Account and Bucket (15 min)
  2. Install pgBackRest (10 min)
  3. Configure pgBackRest (15 min)
  4. Configure PostgreSQL for Archiving (10 min)
  5. Create and Initialize Stanza (10 min)
  6. Take First Full Backup (15 min)
  7. Test Backup Restoration (20 min) ⚠️ CRITICAL
  8. Schedule Automated Backups (10 min)
  9. Create Backup Verification Script (10 min)
  10. Create Backup Monitoring Dashboard (10 min)
  11. Document Backup Configuration (5 min)

Backup Strategy

  • Full backup: Weekly (Sunday 2 AM)
  • Differential backup: Daily (2 AM)
  • Retention: 4 full backups, 4 differential per full
  • WAL archiving: Continuous (automatic)
  • Encryption: AES-256-CBC
  • Compression: zstd level 3

Wasabi Configuration

Help user set up:

  • Bucket name: fairdb-backups-prod (must be unique)
  • Region selection (closest to VPS)
  • Access keys (save in password manager)
  • S3 endpoint URL

Wasabi Endpoints:

  • us-east-1: s3.wasabisys.com
  • us-east-2: s3.us-east-2.wasabisys.com
  • us-west-1: s3.us-west-1.wasabisys.com
  • eu-central-1: s3.eu-central-1.wasabisys.com

pgBackRest Configuration

Key settings in /etc/pgbackrest.conf:

[global]
repo1-type=s3
repo1-s3-bucket=fairdb-backups-prod
repo1-s3-endpoint=s3.wasabisys.com
repo1-cipher-type=aes-256-cbc
compress-type=zst
compress-level=3
repo1-retention-full=4

[main]
pg1-path=/var/lib/postgresql/16/main

Critical Steps

MUST TEST RESTORATION (Step 7)

  • Create test restore directory
  • Restore latest backup
  • Verify all files present
  • Backups are useless if you can't restore!

Automated Backup Script

Create /opt/fairdb/scripts/pgbackrest-backup.sh:

  • Full backup on Sunday
  • Differential backup other days
  • Email alerts on failure
  • Disk space monitoring

Weekly Verification

Create /opt/fairdb/scripts/pgbackrest-verify.sh:

  • Test restoration to temporary directory
  • Verify backup age (<48 hours)
  • Check backup repository health
  • Alert if issues found

Execution Protocol

For each step:

  1. Provide clear instructions
  2. Wait for user confirmation
  3. Verify success before continuing
  4. Check logs for errors
  5. Document credentials immediately

Safety Reminders

  • Save Wasabi credentials in password manager immediately
  • Save encryption password - cannot recover backups without it!
  • Test restoration before trusting backups
  • Monitor backup age - stale backups are useless
  • Keep encryption password secure but accessible

Key Files & Commands

Configuration:

  • /etc/pgbackrest.conf - Main config (contains secrets!)
  • /etc/postgresql/16/main/postgresql.conf - WAL archiving config

Scripts:

  • /opt/fairdb/scripts/pgbackrest-backup.sh - Daily backup
  • /opt/fairdb/scripts/pgbackrest-verify.sh - Weekly verification
  • /opt/fairdb/scripts/backup-status.sh - Quick status check

Monitoring:

# Check backup status
sudo -u postgres pgbackrest --stanza=main info

# View backup logs
sudo tail -100 /var/log/pgbackrest/main-backup.log

# Quick status dashboard
/opt/fairdb/scripts/backup-status.sh

Start the Process

Begin by asking:

  1. "Do you already have a Wasabi account, or do we need to create one?"
  2. "What region is closest to your VPS location?"
  3. "Do you have a password manager ready to save credentials?"

Then guide through Step 1: Create Wasabi Account and Bucket.

Remember: Testing backup restoration (Step 7) is NON-NEGOTIABLE. Never skip this step!

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Sop 003 Backup Setup?

Sop 003 Backup Setup is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Guide through SOP-003 Backup System Setup & Verification with pgBackRest

How do I install Sop 003 Backup Setup in Claude Code?

Download sop-003-backup-setup.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Sop 003 Backup Setup in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Sop 003 Backup Setup safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.