borgbackup/borg

analyze: add --json output

已關閉

#9,992 建立於 2026年8月1日

 (2 則留言) (0 個反應) (1 位負責人)Python (732 個分叉)batch import
easygood first issue

倉庫指標

星標
 (10,086 顆星)
PR 合併指標
 (平均合併 5天 12小時) (30 天內合併 91 個 PR)

描述

borg analyze currently only produces human-readable text output:

  • the set-dedup stats (set / exclusive / rest sizes, see #5741),
  • the hot-spot report (directory path -> churn),
  • the --by-name repository decomposition table (per-name archives / source / stored / compression, shared, unreferenced).

All other status-type commands (info, repo-info, repo-list, list, diff, prune) already offer --json or --json-lines, so tooling can consume their output without scraping text. analyze is the odd one out, and its output is exactly the kind of data monitoring/agent tooling wants (e.g. a read-only MCP status server, see #9955).

Proposal: add --json to borg analyze, emitting the same numbers the text report is rendered from (raw byte values, not pre-formatted sizes), for both the default mode and --by-name.

貢獻者指南