Sop 003 Backup Setup
Guide through SOP-003 Backup System Setup & Verification with pgBackRest
- Type
- Slash Command
- Repository
- jeremylongshore/tons-of-skills-marketplace
- 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
- 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.
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.
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
- Create Wasabi Account and Bucket (15 min)
- Install pgBackRest (10 min)
- Configure pgBackRest (15 min)
- Configure PostgreSQL for Archiving (10 min)
- Create and Initialize Stanza (10 min)
- Take First Full Backup (15 min)
- Test Backup Restoration (20 min) ⚠️ CRITICAL
- Schedule Automated Backups (10 min)
- Create Backup Verification Script (10 min)
- Create Backup Monitoring Dashboard (10 min)
- 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/mainCritical 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:
- Provide clear instructions
- Wait for user confirmation
- Verify success before continuing
- Check logs for errors
- 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.shStart the Process
Begin by asking:
- "Do you already have a Wasabi account, or do we need to create one?"
- "What region is closest to your VPS location?"
- "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
- Zero Designs zero trust network architectures with phased roadmaps covering identity pillars, microsegmentation, and ZTNA replacement for VPN. Use when you need a zero trust design, a network segmentation plan, or a ZT maturity assessment. Trigger with \"design my zero trust architecture\", \"audit my network for zero trust readiness\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Zapier Zap Builder Create multi-step Zapier Zaps with filters, paths, and formatters Plugin · jeremylongshore/tons-of-skills-marketplace
- Zero Tech Debt Rebuild a feature as if the correct product architecture existed from day one. Removes compatibility cruft, dead abstractions, and historical compromises instead of preserving them. Methodology-only — no destructive actions without operator approval. Plugin · jeremylongshore/tons-of-skills-marketplace
- Yt Scraper Orchestrates YouTube data extraction via Apify actors — channel metadata, video details, search results — polling until complete and saving all datasets to disk. Use when collecting raw YouTube data for strategy analysis. Trigger with "scrape youtube channels", "fetch youtube data". Subagent · jeremylongshore/tons-of-skills-marketplace
- Sprint Run the autonomous multi-agent sprint workflow with spec-driven development Slash Command · jeremylongshore/tons-of-skills-marketplace
- Sop 002 Postgres Install Guide through SOP-002 PostgreSQL Installation & Configuration Slash Command · jeremylongshore/tons-of-skills-marketplace
- Sql Query Builder Generate optimized SQL queries from natural language descriptions Slash Command · jeremylongshore/tons-of-skills-marketplace
- Sop 001 Vps Setup Guide through SOP-001 VPS Initial Setup & Hardening procedure Slash Command · jeremylongshore/tons-of-skills-marketplace