/backup-planner:generate-backup-scriptsfrom backup-planner
Generate the actual backup scripts and scheduling units (systemd timers, cron, GitHub Actions, Kubernetes CronJobs) that implement the documented strategy. Use after BACKUP-STRATEGY.md is approved.
Ships in backup-planner. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Translate the strategy document into runnable code. Output lives in backup-plan/scripts/ and, where relevant, in the project's existing ops/, .github/workflows/, or k8s/ directories.
backup-plan/BACKUP-STRATEGY.md — the source of truth. If it doesn't exist, stop and run document-backup-strategy first.Match the tool(s) the strategy picked. Always produce: (a) the backup script itself, (b) a matching restore script stub, (c) the scheduling unit, (d) a short README inside backup-plan/scripts/ explaining how to run and verify.
#!/usr/bin/env bash
set -euo pipefail
: "${RESTIC_REPOSITORY:?}" # e.g. s3:https://s3.us-east-005.backblazeb2.com/<bucket>/<prefix>
: "${RESTIC_PASSWORD_FILE:?}"
: "${AWS_ACCESS_KEY_ID:?}"
: "${AWS_SECRET_ACCESS_KEY:?}"
TAG="${BACKUP_TAG:-$(hostname -s)}"
SOURCES=( /path/to/data /etc/<app> )
EXCLUDES=( --exclude-caches --exclude '*.tmp' --exclude 'node_modules' )
restic backup "${SOURCES[@]}" "${EXCLUDES[@]}" --tag "$TAG" --one-file-system
restic forget --tag "$TAG" --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --keep-yearly 3 --prune
restic check --read-data-subset=5%
Dump to a FIFO and pipe into restic to avoid landing plaintext on disk:
restic backup --stdin --stdin-filename "${DB}-$(date +%F).sql" \
--tag pg-${DB} \
<(pg_dump --format=custom --no-owner --dbname "$DATABASE_URL")
rclone sync --fast-list --checksum --transfers 16 \
primary:bucket/prefix secondary:bucket/prefix \
--backup-dir secondary:bucket/_versions/$(date +%F)
Produce paired <name>.service (Type=oneshot) and <name>.timer (OnCalendar=...). Always include Persistent=true so missed runs fire on boot.
Generate idiomatic manifests. Inject secrets via repository secrets or secretRef — never bake credentials into the script.
set -euo pipefail (bash) or equivalent strict mode./tmp.--dry-run flag or DRY_RUN=1 env).chmod +x.backup-plan/scripts/README.md listing each script, what it does, how to dry-run, and where logs land.BACKUP-STRATEGY.md → the scripts.--dry-run, then do a real run, then verify by listing snapshots / dumped objects.What SKILL.md sets; muted values are Claude Code's defaults
backup-planner@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin backup-planner8 skills in this plugin
/complementary-pluginsList and install plugins that complement backup-planner: batch-optical-archivist, rclone-manager, snap-it. Use on "related plugins"./document-backup-strategyWrite the authoritative backup strategy document for the project — the approved option from evaluation, spelled out with schedules, retention, responsibilities, and monitoring. Use after the user has approved an option./evaluate-backup-optionsRecommend the best-fit backup strategy for the project given its data inventory and the user's available infrastructure. Produces a ranked options brief with trade-offs. Use after architecture and inventory are mapped.Other plugins' skills for the same job