Saved Audits, Filters & Formats
Persisted audits
Section titled “Persisted audits”plan, inspect and clean normally re-run the full audit. Save an audit once and reuse it everywhere:
bekas audit --save # stored under its audit idbekas audit --save myscan # stored with an alias too
bekas plan --from-audit last # newest audit, no rescanbekas plan --from-audit myscanbekas inspect <id> --from-audit lastbekas clean --from-audit myscan --apply--from-audit guarantees no rescan — the candidates you reviewed are exactly the ones acted on.
Filters
Section titled “Filters”Filter candidates by size and age, consistently across audit, plan and clean:
bekas audit --min-size 500MB --older-than 90dbekas plan --min-size 1GB --older-than 1ybekas clean --from-audit last --min-size 100MB --applyUnits are human-readable: 500MB, 1.5GB, 90d, 2w, 1y. Age filtering never matches candidates without a timestamp — they are never silently included.
Interactive cleaning
Section titled “Interactive cleaning”bekas clean --interactiveCandidates are grouped by category with size and reason; toggle numbered items per group. A final selection summary is shown before the typed confirmation gate, so nothing is removed without two explicit confirmations.
Plan diff
Section titled “Plan diff”Compare a freshly computed plan against a saved one:
bekas plan --save plan.json# ... time passes ...bekas plan --diff plan.jsonOutput lists Added, Removed and Changed candidates (with old → new sizes).
Output formats
Section titled “Output formats”bekas audit --format csv # id, category, size_bytes, ...bekas audit --format ndjson # one JSON object per linebekas audit --format json # full reportEvery format is aligned with the plain --json global flag; table keeps the human view.