ericrisco/rsc-harness / skills/backups
backups
VerifiedUse when designing or auditing a backup-and-restore program that must survive a real disaster: setting defensible RPO/RTO targets, laying out 3-2-1-1-0 copies that are offsite and immutable, wiring point-in-time recovery, and proving restores work on a schedule. NOT tuning Postgres internals or writing the archive_command (that is `postgresdb`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.8 KB |
| evals/README.md | markdown | 850 B |
| evals/cases.yaml | config | 3.3 KB |
| references/engine-recipes.md | markdown | 4.7 KB |
| references/restore-runbook.md | markdown | 3.0 KB |
| scripts/verify.shexecutable | script | 2.4 KB |
scripts/verify.sh
View on GitHub#!/usr/bin/env bash
# verify.sh — completeness lint for a backup-policy / restore-runbook artifact.
#
# Read-only. It does NOT run, create, or touch any backup. It only greps a
# produced artifact for the five pillars this skill insists on:
# 1. an RPO value 4. immutability (Object Lock / WORM)
# 2. an RTO value 5. a scheduled restore-test cadence + a verification step
# 3. an offsite copy
#
# Usage:
# scripts/verify.sh <path-to-policy-or-runbook.md>
#
# Exit codes:
# 0 all pillars present, OR no/empty target given (nothing to lint = no false failure)
# 1 the target exists with content but is missing one or more pillars
# 2 the target path was given but does not exist / is unreadable
set -euo pipefail
target="${1:-}"
# No target, or an empty target → nothing to lint. Clean exit, never a false failure.
if [[ -z "${target}" ]]; then
echo "verify.sh: no artifact path given — nothing to lint (ok)"
exit 0
fi
if [[ ! -e "${target}" ]]; then
echo "verify.sh: '${target}' does not exist" >&2
exit 2
fi
if [[ ! -r "${target}" ]]; then
echo "verify.sh: '${target}' is not readable" >&2
exit 2
fi
if [[ ! -s "${target}" ]]; then
echo "verify.sh: '${target}' is empty — nothing to lint (ok)"
exit 0
fi
# Case-insensitive presence check helper.
has() { grep -Eiq -- "$1" "${target}"; }
missing=()
# Pillar 1: RPO — the acronym, with a number somewhere near it is ideal but the
# label alone is the minimum signal.
has 'rpo' || missing+=("RPO target (recovery point objective)")
# Pillar 2: RTO.
has 'rto' || missing+=("RTO target (recovery time objective)")
# Pillar 3: an offsite copy.
has 'off[ -]?site|different (region|account)|cross[ -]region' \
|| missing+=("offsite copy (different region/account)")
# Pillar 4: immutability.
has 'immutab|object[ -]?lock|worm' \
|| missing+=("immutability (Object Lock / WORM)")
# Pillar 5a: a scheduled restore-test cadence.
has 'restore[ -](test|drill)|test(ed)? restore|monthly|quarterly|annual' \
|| missing+=("scheduled restore-test cadence")
# Pillar 5b: a verification / integrity step.
has 'verif|integrity|checksum|\bcheck\b|0 (verification )?errors' \
|| missing+=("verification / integrity step")
if [[ ${#missing[@]} -eq 0 ]]; then
echo "verify.sh: '${target}' covers all five pillars — ok"
exit 0
fi
echo "verify.sh: '${target}' is missing the following pillar(s):" >&2
for m in "${missing[@]}"; do
echo " - ${m}" >&2
done
exit 1
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |