TeoSlayer/pilot-skills / skills/pilot-backup-disaster-recovery-setup
pilot-backup-disaster-recovery-setup
VerifiedDeploy a backup and disaster recovery system with 4 agents. Use this skill when: 1. User wants to set up automated backup infrastructure 2. User is configuring a scheduler, backup, offsite replica, or restore tester agent 3. User asks about disaster recovery, offsite sync, or backup verification Do NOT use this skill when: - User wants a single backup operation (use pilot-backup instead) - User wants to verify a single file (use pilot-verify instead)
Backup & Disaster Recovery Setup
Deploy 4 agents: scheduler, primary backup, offsite secondary, and restore tester.
Roles
| Role | Hostname | Skills | Purpose |
|---|---|---|---|
| scheduler | <prefix>-backup-sched | pilot-cron, pilot-task-chain, pilot-audit-log, pilot-slack-bridge | Orchestrates backup lifecycle |
| primary | <prefix>-backup-primary | pilot-backup, pilot-archive, pilot-compress, pilot-share | Creates and ships backups |
| secondary | <prefix>-backup-secondary | pilot-sync, pilot-verify, pilot-health, pilot-share | Offsite replica, verifies integrity |
| tester | <prefix>-restore-tester | pilot-backup, pilot-verify, pilot-health, pilot-alert | Tests restores, alerts on failures |
Setup Procedure
Step 1: Ask the user which role and prefix.
Step 2: Install skills:
# scheduler:
clawhub install pilot-cron pilot-task-chain pilot-audit-log pilot-slack-bridge
# primary:
clawhub install pilot-backup pilot-archive pilot-compress pilot-share
# secondary:
clawhub install pilot-sync pilot-verify pilot-health pilot-share
# tester:
clawhub install pilot-backup pilot-verify pilot-health pilot-alert
Step 3: Set hostname and write manifest to ~/.pilot/setups/backup-disaster-recovery.json.
Step 4: Handshake along the chain: scheduler↔primary↔secondary↔tester↔scheduler.
Manifest Templates Per Role
scheduler
{
"setup": "backup-disaster-recovery", "role": "scheduler", "role_name": "Backup Scheduler",
"hostname": "<prefix>-backup-sched",
"skills": {
"pilot-cron": "Schedule periodic backup jobs (hourly, daily, weekly).",
"pilot-task-chain": "Orchestrate backup → sync → verify → report.",
"pilot-audit-log": "Log all backup lifecycle events.",
"pilot-slack-bridge": "Send backup reports and failure alerts to Slack."
},
"data_flows": [
{ "direction": "send", "peer": "<prefix>-backup-primary", "port": 1002, "topic": "backup-start", "description": "Trigger backup jobs" },
{ "direction": "receive", "peer": "<prefix>-restore-tester", "port": 1002, "topic": "restore-result", "description": "Restore test results" }
],
"handshakes_needed": ["<prefix>-backup-primary", "<prefix>-backup-secondary", "<prefix>-restore-tester"]
}
primary
{
"setup": "backup-disaster-recovery", "role": "primary", "role_name": "Primary Backup",
"hostname": "<prefix>-backup-primary",
"skills": {
"pilot-backup": "Create database and filesystem backups.",
"pilot-archive": "Archive backups with metadata and retention.",
"pilot-compress": "Compress archives before transfer.",
"pilot-share": "Ship compressed archives to secondary."
},
"data_flows": [
{ "direction": "receive", "peer": "<prefix>-backup-sched", "port": 1002, "topic": "backup-start", "description": "Backup triggers" },
{ "direction": "send", "peer": "<prefix>-backup-secondary", "port": 1001, "topic": "sync-backup", "description": "Compressed archives" }
],
"handshakes_needed": ["<prefix>-backup-sched", "<prefix>-backup-secondary"]
}
secondary
{
"setup": "backup-disaster-recovery", "role": "secondary", "role_name": "Offsite Replica",
"hostname": "<prefix>-backup-secondary",
"skills": {
"pilot-sync": "Receive and sync backup archives from primary.",
"pilot-verify": "Verify integrity checksums on received backups.",
"pilot-health": "Report offsite storage health and capacity.",
"pilot-share": "Provide backups to restore tester on demand."
},
"data_flows": [
{ "direction": "receive", "peer": "<prefix>-backup-primary", "port": 1001, "topic": "sync-backup", "description": "Compressed archives" },
{ "direction": "send", "peer": "<prefix>-restore-tester", "port": 1001, "topic": "restore-data", "description": "Backups for testing" },
{ "direction": "send", "peer": "<prefix>-backup-sched", "port": 1002, "topic": "sync-confirmed", "description": "Sync confirmation" }
],
"handshakes_needed": ["<prefix>-backup-primary", "<prefix>-backup-sched", "<prefix>-restore-tester"]
}
tester
{
"setup": "backup-disaster-recovery", "role": "tester", "role_name": "Restore Tester",
"hostname": "<prefix>-restore-tester",
"skills": {
"pilot-backup": "Perform test restores in isolated environment.",
"pilot-verify": "Verify restored data integrity (row counts, checksums).",
"pilot-health": "Monitor restore test environment health.",
"pilot-alert": "Alert on restore failures or data corruption."
},
"data_flows": [
{ "direction": "receive", "peer": "<prefix>-backup-secondary", "port": 1001, "topic": "restore-data", "description": "Backups to test" },
{ "direction": "send", "peer": "<prefix>-backup-sched", "port": 1002, "topic": "restore-result", "description": "Test results" }
],
"handshakes_needed": ["<prefix>-backup-secondary", "<prefix>-backup-sched"]
}
Data Flows
scheduler → primary: backup triggers (port 1002)primary → secondary: compressed archives (port 1001)secondary → tester: backups for testing (port 1001)tester → scheduler: restore test results (port 1002)
Workflow Example
# On scheduler:
pilotctl --json publish <prefix>-backup-primary backup-start '{"job_id":"BK-315","type":"full","targets":["postgres","redis"]}'
# On primary:
pilotctl --json send-file <prefix>-backup-secondary ./backups/BK-315-postgres.tar.gz
pilotctl --json publish <prefix>-backup-secondary sync-backup '{"job_id":"BK-315","size_mb":1240}'
# On tester:
pilotctl --json publish <prefix>-backup-sched restore-result '{"job_id":"BK-315","restore":"success","tables_verified":42}'
Dependencies
Requires pilot-protocol skill, pilotctl binary, clawhub binary, and a running daemon.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |