Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

restic

$ restic Community High Risk
restic (OSS) · Files & Search · BSD-2-Clause · macos / linux / windows

restic creates content-addressed, AES-256-encrypted snapshots locally or to S3/B2/REST backends. Almost every subcommand supports --json and non-interactive RESTIC_PASSWORD env vars, while backup and forget support --dry-run.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install restic
CLI vs MCP Decision CLI Preferred vs MCP

Backup indexing, deduplication, and snapshot inspection run natively in restic with --json status output.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

First-class --json output on snapshots, backup, diff, stats, and check, plus env-var-driven non-interactive auth.

  • Consistent --json flag and RESTIC_PASSWORD_FILE support
Trust & Safety 17 / 25

Encrypted backups are safe to read/create, but forget --prune permanently destroys backup history if run without --dry-run.

  • Permanent data deletion possible via forget --prune
Setup & Portability 14 / 15

Single static Go binary available via brew, go install, and OS packages.

  • Cross-platform static binary
Utility & Efficiency 14 / 15

Fast deduplicated snapshots with verifiable restic check integrity.

  • Content-addressed deduplication and snapshot diffing
Maintenance & Lineage 9 / 10

Well-maintained OSS backup standard (restic/restic) under BSD-2-Clause.

  • Active community and regular security/performance releases
Docs & Verifiability 9 / 10

Extensive ReadTheDocs manual covering JSON output schemas and scripting.

  • Dedicated scripting/JSON documentation at restic.readthedocs.io

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads repository password via RESTIC_PASSWORD / RESTIC_PASSWORD_FILE and storage credentials via AWS_* or RESTIC_REPOSITORY env vars.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

100% free OSS (BSD-2-Clause); remote object storage incurs provider costs.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# restic Agent Rules
- ALWAYS pass `--dry-run` before `restic forget --prune` or `restic restore --target`.
- Supply `RESTIC_PASSWORD_FILE` (never echo `RESTIC_PASSWORD` in commands or logs) and pass `--json` for parsing.

Agent-Ready Command Recipes

Safe Read-Only Queries

List existing backup snapshots as JSON
restic snapshots --json

Queries repository snapshot metadata in structured JSON without restoring files.

Simulate a backup run without uploading chunks
restic backup --dry-run --json ./data

Reports files and bytes that would be snapshotted without writing to the repo.

Controlled Writes & Previews

Preview retention pruning without deleting snapshots
restic forget --keep-daily 7 --prune --dry-run --json

Validates retention policy matches before allowing permanent snapshot pruning.

Strengths for Agents

  • + Nearly every subcommand supports --json and non-interactive password-file auth.
  • + --dry-run is supported on both backup and forget retention policies.

Caveats & Pitfalls

  • ! Running forget --prune without --dry-run permanently removes backup snapshots.
  • ! Repository locks can remain stale after interrupted runs, requiring restic unlock.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI