Skip to content
agents.store
devinfrastructure

restic-dev

restic backup plugin for Agents Store. Set up encrypted daily backups on any Linux server to S3-compatible storage (Cloudflare R2): server recon + restic install, auto-discovery of all Docker volumes/mounts and databases, R2 repository init, a partial-failure-tolerant backup script with logical DB dumps and retention, timezone-aware systemd/cron scheduling, verification, monitoring/dead-man's-switch, and disaster recovery. File-based knowledge, no MCP, no stored credentials.

v1.1.7Updated

  • restic
  • backup
  • restore
  • cloudflare-r2
  • s3
  • object-storage
  • docker
  • postgres
  • disaster-recovery
  • systemd
  • encryption
  • infrastructure
  • dev
  • agents-store

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install restic-dev@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (11)

  • backup-script

    This skill should be used when the user asks to "write the restic backup script", "add database dumps to my backup", "set restic retention/forget policy", "create excludes for restic", or needs the daily script that dumps databases, backs up the discovered paths, tolerates exit code 3, and prunes old snapshots.

  • cli-reference

    This skill should be used when the user asks for the "restic command reference", "all restic commands", "restic flags", "restic environment variables", "restic exit codes", or needs the full command/flag/env-var reference for restic.

  • disaster-recovery

    This skill should be used when the user asks to "restore from a restic backup", "recover Docker data or a database from restic", "rebuild my server from backups", "do a full or partial restic restore", "my server died how do I get my data back", or needs to restore files, replay database dumps, and stand services back up.

  • discover-backup-sources

    This skill should be used when the user asks to "figure out what to back up", "find all my Docker volumes", "discover backup sources", "what should I be backing up on this server", "scan my Docker projects for backup", or points at a projects folder and wants the plugin to inspect every container's mounts and databases and build a concrete backup plan.

  • examples

    This skill should be used when the user asks for a "restic backup example", "end-to-end restic R2 walkthrough", "Docker server backup tutorial", "restic disaster recovery example", "how would this work on my server", or wants a complete scenario walkthrough.

  • monitoring

    This skill should be used when the user asks to "monitor restic backups", "get alerted when a backup fails", "set up a healthcheck or dead-man's-switch for backups", "detect stale restic snapshots", "alert me if backups stop", or needs ongoing backup health monitoring.

  • repository-setup

    This skill should be used when the user asks to "set up a restic repository on Cloudflare R2", "configure restic with S3 credentials", "create the restic encryption password", "initialize a restic repo", "fix restic AccessDenied on R2", or needs to wire up the password, R2/S3 env file, repository URL, and run restic init.

  • scheduling

    This skill should be used when the user asks to "schedule daily restic backups", "create a systemd timer for restic", "set up a cron job for backups", "run my backup at a specific time/timezone", or needs a timezone-aware schedule (systemd timer, or cron fallback on non-systemd hosts).

  • setup

    This skill should be used when the user asks to "set up restic backups on a server", "install restic", "prepare a Linux server for backups", "check what arch/init system my server uses", or needs to recon a server (architecture, OS, init system, timezone, free disk) and install the correct latest restic binary before configuring backups.

  • troubleshoot

    This skill should be used when the user hits "restic errors", "restic backup fails in cron", "restic repository is locked", "restic AccessDenied on R2", "restic wrong password", "restic SignatureDoesNotMatch", or needs to diagnose restic exit codes, S3/R2 errors, locks, repo/index/cache problems, and cron/systemd-only failures.

  • verify-backup

    This skill should be used when the user asks to "verify my restic backup works", "test a restic restore", "check restic snapshots and integrity", "validate backups before enabling the schedule", or needs to run the first backup, confirm snapshots, run restic check, test-restore, then enable the timer.

Commands (3)

  • backup-now

    Run an ad-hoc restic backup now and show the resulting snapshot

  • restore

    Guided restore / disaster recovery from a restic repository

  • status

    Show restic backup health — timer state, latest snapshot, freshness, recent log

Agents (1)

  • restic-backup-engineer

    Use this agent when the user needs to set up, operate, or recover encrypted restic backups on a Linux server — reconning the host, auto-discovering Docker volumes and databases to back up, configuring a Cloudflare R2 / S3 repository, writing and scheduling a verified daily backup, monitoring it, or restoring after a disaster. <example> Context: Fresh Linux box with Docker projects and R2 credentials; wants offsite daily backups. user: "I've got a bunch of Docker projects in /docker and Cloudflare R2 credentials. Set up automated daily backups." assistant: "I'll use the restic-backup-engineer agent to recon the server, discover all Docker volumes and databases, configure the R2 repository, and schedule verified daily backups." <commentary>End-to-end provisioning: recon → discover → repo → script → schedule → verify. The agent's core flow.</commentary> </example> <example> Context: User is unsure where their data actually lives. user: "I think my data is in /docker but I'm not 100% sure where everything is. What should I be backing up?" assistant: "I'll use the restic-backup-engineer agent to auto-discover every container's mounts and databases — including data outside /docker — and produce a concrete backup plan for your review." <commentary>discover-backup-sources: mapping containers→working_dir→mounts→DBs even outside the named folder, then confirming before writing anything.</commentary> </example> <example> Context: A server died; user must restore onto a new box. user: "My server is gone. I have the restic password and R2 keys. How do I get my Postgres data and Docker volumes back on a new server?" assistant: "I'll use the restic-backup-engineer agent to rebuild on the new server — install restic, reconnect the R2 repo, restore volumes, and replay the database dumps." <commentary>disaster-recovery / rebuild: restore files + DB-dump replay on fresh infrastructure.</commentary> </example>

README

Set up encrypted, scheduled restic backups on any Linux server to S3-compatible object storage (Cloudflare R2 first-class) — a Technology (dev) plugin for the Agents Store marketplace. Knowledge-only: no MCP server, no stored credentials. Everything runs through the restic binary on the target server; R2 keys and the encryption password are created at runtime on that server (/root/.restic/, mode 600) and never touch the plugin or git.

What it covers

You give the plugin your S3/R2 access and the folder where your Docker projects live. It recons the server, auto-discovers what to back up — every container's bind-mounts and named volumes (including data living outside the named folder), separating regenerable junk and databases (which get logical dumps, not file copies) — then wires up an encrypted R2 repository, a partial-failure-tolerant daily backup script, a timezone-aware schedule, verification with a real test-restore, ongoing monitoring, and disaster recovery.

Skills

SkillUse it for
setupServer recon (arch/init/timezone/disk/docker) and install the correct latest restic binary
discover-backup-sources⭐ Auto-discover every Docker volume/mount + databases and produce a concrete backup plan
repository-setupEncryption password, R2/S3 credentials, repository URL, restic init (and R2 AccessDenied fixes)
backup-scriptThe daily script: logical DB dumps, exit-code-3 tolerance, forget/prune retention, excludes
schedulingTimezone-aware systemd timer (or cron fallback on non-systemd hosts)
verify-backupFirst run, snapshots, check, test-restore + diff — the gate before enabling the schedule
monitoringDead-man's-switch, failure alerts, snapshot-freshness checks, periodic integrity check
disaster-recoveryRestore files/volumes/databases and rebuild on a fresh server
troubleshootExit codes, R2/S3 errors, stale locks, repo/index repair, cron-only failures
cli-referenceFull command / flag / environment-variable reference (manual-load only)
examplesEnd-to-end scenario walkthroughs (Docker server → R2, cron host, disaster recovery, multi-DB)

Agent

restic-backup-engineer — a restic backup specialist that recons a server, discovers what to back up, configures the R2 repository, writes and schedules a verified daily backup, monitors it, and drives disaster recovery. Confirms before any destructive operation and never enables a schedule until a test-restore passes.

Commands

CommandDoes
/restic-dev:statusAre backups healthy? Timer state, latest snapshot, freshness, log tail
/restic-dev:restoreGuided restore / disaster recovery
/restic-dev:backup-nowRun an ad-hoc backup now and show the resulting snapshot

Prerequisites

  • A Linux server you can run commands on (SSH or local), with docker if you want volume auto-discovery
  • S3-compatible object storage. For Cloudflare R2: a bucket and an R2 API token with Object Read & Write, plus the account endpoint https://<account_id>.r2.cloudflarestorage.com
  • restic is installed by the setup skill if missing — no manual install required

No plugin configuration is required. The encryption password and storage credentials are generated and stored on the target server — keep an off-server copy of the password, or restore is impossible.

Quick start

# Inside Claude Code, on (or connected to) the target server:
/restic-dev:status                     # if already set up — health at a glance
# or just ask the restic-backup-engineer agent:
#   "I have Docker projects in /docker and Cloudflare R2 keys. Set up daily backups."

Notes

  • restic always encrypts client-side (AES-256) — the password is the only key. Losing it means total, unrecoverable data loss.
  • Built from the official docs at https://restic.readthedocs.io/ and Cloudflare R2's S3 API docs.

Made by AGENTS.STORE.