restic
$ restic Community High Riskrestic 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.
brew install restic Backup indexing, deduplication, and snapshot inspection run natively in restic with --json status output.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class --json output on snapshots, backup, diff, stats, and check, plus env-var-driven non-interactive auth.
- Consistent
--jsonflag andRESTIC_PASSWORD_FILEsupport
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
Single static Go binary available via brew, go install, and OS packages.
- Cross-platform static binary
Fast deduplicated snapshots with verifiable restic check integrity.
- Content-addressed deduplication and snapshot diffing
Well-maintained OSS backup standard (restic/restic) under BSD-2-Clause.
- Active community and regular security/performance releases
Extensive ReadTheDocs manual covering JSON output schemas and scripting.
- Dedicated scripting/JSON documentation at restic.readthedocs.io
Security, Auth & Guardrails
Reads repository password via RESTIC_PASSWORD / RESTIC_PASSWORD_FILE and storage credentials via AWS_* or RESTIC_REPOSITORY env vars.
100% free OSS (BSD-2-Clause); remote object storage incurs provider costs.
# 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
restic snapshots --json
Queries repository snapshot metadata in structured JSON without restoring files.
restic backup --dry-run --json ./data
Reports files and bytes that would be snapshotted without writing to the repo.
Controlled Writes & Previews
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
--jsonand non-interactive password-file auth. - +
--dry-runis supported on bothbackupandforgetretention policies.
Caveats & Pitfalls
- ! Running
forget --prunewithout--dry-runpermanently removes backup snapshots. - ! Repository locks can remain stale after interrupted runs, requiring
restic unlock.