What takes the space
borg list --format prints raw byte sizes by field: sort and tail to find heavy files:
| |
| |
numfmt --to=iec reads them as 1.2G, 850M, 420M; such findings usually mean a directory to exclude, not a Borg problem.
Verifying without restoring
| |
borg check verifies repository structure, metadata and archive consistency. --verify-data also reads and hashes contents — much slower, the only proof the data is intact. --repository-only limits the check to the repository, an archive argument to that archive.
A cheap smoke test without full verification:
| |
What prune keeps
| |
prune deletes whole archives per the retention rules, keeping the most recent of each period:
| Flag | Keeps |
|---|---|
--keep-weekly=10 | newest of the last 10 calendar weeks |
--keep-monthly=4 | newest of the last 4 months |
--keep-yearly=2 | newest of the last 2 years |
Twenty January backups collapse to one kept archive for the month unless a weekly or daily rule retains more. Deletion is dedup-safe: blocks a kept archive references stay, the rest freed.
Without --keep-daily, daily granularity is not retained; retention is the union of named rules, not a superset.
Archive names are free-form
No naming pattern is enforced: a new one for future backups leaves old archives untouched and coexisting:
| |
Two caveats: the new pattern must not collide with existing names, and anything filtering by prefix or glob — prune, list, check in a script, borgmatic — must be told. Renaming old archives is optional:
| |
–filter is output, not content
--filter=AME selects which files Borg prints while running, not which are included:
| Letter | Meaning |
|---|---|
A | added — new in this archive |
M | modified since the last archive |
E | existing — unchanged |
| |
| |
The snapshot is identical whatever the filter: AME watches progress as a change log, and -v/--list add detail.