BorgBackup
$ borg Community High RiskBorgBackup (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.
brew install borgbackup Archive inspection, deduplicated backups, and dry-run retention checks run directly in borg with --json output and zero MCP overhead.
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
Strong --json support across list, info, create, and diff, plus BORG_PASSPHRASE / BORG_PASSCOMMAND headless auth.
- Native
--jsonand--json-linesflags on core subcommands - Non-interactive env vars (
BORG_PASSPHRASE,BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK)
Authenticated encryption and --dry-run on create/prune/extract, though borg delete and prune permanently remove history.
--dry-runavailable on archive creation and pruningborg deleteandborg compactirreversibly free data
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
Fast client-side chunk deduplication, compression, and FUSE mount inspection for large backup sets.
- Content-defined chunking with lz4/zstd compression
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
Comprehensive ReadTheDocs documentation with dedicated sections on automation and JSON schemas.
- Explicit JSON output format reference at borgbackup.readthedocs.io
Security, Auth & Guardrails
Reads repository passphrases from BORG_PASSPHRASE or BORG_PASSCOMMAND, keyfiles in ~/.config/borg/keys/, and SSH keys for remote repos.
100% free OSS (BSD-3-Clause); remote SSH storage depends on host capacity.
# 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
borg list --json /path/to/repo
Emits structured JSON metadata for all archives in the repository without altering data.
borg info --json /path/to/repo::daily-2026-12-05
Returns original, compressed, and deduplicated byte counts for a specific archive.
Controlled Writes & Previews
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
--jsonoutput acrosslist,info, andcreate. - + Supports
--dry-runsimulation before writing backups or pruning archives.
Caveats & Pitfalls
- ! No native Windows support outside WSL.
- ! Interrupted runs can leave repository locks requiring manual
borg break-lockinspection.