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

BorgBackup

$ borg Community High Risk
BorgBackup · Files & Search · BSD-3-Clause · macos / linux

BorgBackup (borg) stores deduplicated, compressed, and authenticated encrypted archives over local disks or SSH repositories. Most inspection and backup commands support --json output and BORG_PASSPHRASE env vars, while create and prune offer --dry-run.

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

Archive inspection, deduplicated backups, and dry-run retention checks run directly in borg with --json output and zero MCP overhead.

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 22 / 25

Strong --json support across list, info, create, and diff, plus BORG_PASSPHRASE / BORG_PASSCOMMAND headless auth.

  • Native --json and --json-lines flags on core subcommands
  • Non-interactive env vars (BORG_PASSPHRASE, BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK)
Trust & Safety 17 / 25

Authenticated encryption and --dry-run on create/prune/extract, though borg delete and prune permanently remove history.

  • --dry-run available on archive creation and pruning
  • borg delete and borg compact irreversibly free data
Setup & Portability 11 / 15

Widely packaged for Linux and macOS via brew, apt, and PyPI, though native Windows is unsupported outside WSL.

  • First-class Linux/macOS support; no native Windows build
Utility & Efficiency 14 / 15

Fast client-side chunk deduplication, compression, and FUSE mount inspection for large backup sets.

  • Content-defined chunking with lz4/zstd compression
Maintenance & Lineage 9 / 10

Mature, security-conscious OSS project (borgbackup/borg) under BSD-3-Clause with active 1.x/2.x development.

  • Well-maintained GitHub repository with regular releases
Docs & Verifiability 9 / 10

Comprehensive ReadTheDocs documentation with dedicated sections on automation and JSON schemas.

  • Explicit JSON output format reference at borgbackup.readthedocs.io

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads repository passphrases from BORG_PASSPHRASE or BORG_PASSCOMMAND, keyfiles in ~/.config/borg/keys/, and SSH keys for remote repos.

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

100% free OSS (BSD-3-Clause); remote SSH storage depends on host capacity.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# BorgBackup (borg) Agent Rules
- ALWAYS pass `--dry-run` before running `borg create`, `borg prune`, or `borg delete`.
- Supply passphrases via `BORG_PASSCOMMAND` or `BORG_PASSPHRASE` (never inline secrets in commands) and pass `--json` for machine parsing.

Agent-Ready Command Recipes

Safe Read-Only Queries

List repository archives as JSON
borg list --json /path/to/repo

Emits structured JSON metadata for all archives in the repository without altering data.

Inspect archive statistics in JSON
borg info --json /path/to/repo::daily-2026-12-05

Returns original, compressed, and deduplicated byte counts for a specific archive.

Controlled Writes & Previews

Preview retention pruning without deleting archives
borg prune --dry-run --list --keep-daily=7 --keep-weekly=4 /path/to/repo

Simulates retention rules with --dry-run so agents verify which archives would be kept or pruned.

Strengths for Agents

  • + First-class --json output across list, info, and create.
  • + Supports --dry-run simulation before writing backups or pruning archives.

Caveats & Pitfalls

  • ! No native Windows support outside WSL.
  • ! Interrupted runs can leave repository locks requiring manual borg break-lock inspection.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI