No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andy Teijelo ecb4b3fca9
All checks were successful
Build and Publish / build-and-publish (push) Successful in 32s
bad secret name
2026-07-28 19:03:05 -04:00
.forgejo/workflows bad secret name 2026-07-28 19:03:05 -04:00
src/restic_compare initial commit 2026-07-27 18:24:39 -04:00
.gitignore initial commit 2026-07-27 18:24:39 -04:00
.python-version require python 3.14.6 2026-07-28 10:04:04 -04:00
pyproject.toml require python 3.14.6 2026-07-28 10:04:04 -04:00
README.md tabulate uses screen width, truncate lines for the README 2026-07-27 18:32:15 -04:00
uv.lock lock file 2026-07-28 10:04:29 -04:00

restic-compare

Compare two restic snapshots and show the paths that contributed to size changes.

Usage

Run restic-compare by providing the IDs of the two snapshots you want to compare:

restic-compare <old_snapshot_id> <new_snapshot_id>

If you don't provide any arguments, it will compare the two latest snapshots:

Sample output

Added      Path
---------  ---------------------------------------------------------------------
96.8 MB    /var/lib/prometheus/metrics2/01KYB5PYP2P4SAMYMS536MDAVR/chunks/000001
32.5 MB    /var/lib/prometheus/metrics2/01KYBTA4FYJZR20Q4XE2QVM8H9/chunks/000001
31.1 MB    /var/lib/prometheus/metrics2/wal/00026868
22.6 MB    /var/lib/prometheus/metrics2/wal/00026869
15.5 MB    /var/lib/prometheus/metrics2/wal/00026870
11.1 MB    /var/lib/prometheus/metrics2/01KYC15V9JD9GK5HN7PDA4132N/chunks/000001
11.0 MB    /var/lib/prometheus/metrics2/01KYBKE86MCJPSMBRNBTNJZ9ET/chunks/000001
10.8 MB    /var/lib/prometheus/metrics2/01KYBTA43SBXVGXH90ATCVB2A7/chunks/000001
9.2 MB     /var/lib/prometheus/metrics2/01KYC81JD9ZKV0XDCYAHS399WX/chunks/000001
8.6 MB     /var/lib/prometheus/metrics2/chunks_head/026306
...

Removed     Path
----------  ---------------------------------------------------------------------
-31.2 MB    /var/lib/prometheus/metrics2/wal/00026856
-31.1 MB    /var/lib/prometheus/metrics2/wal/00026857
-22.1 MB    /var/lib/prometheus/metrics2/wal/00026858
-11.3 MB    /var/lib/prometheus/metrics2/chunks_head/026294
-10.9 MB    /var/lib/prometheus/metrics2/01KY9ES4AXE9122WGPTVPM376B/chunks/000001
-10.9 MB    /var/lib/prometheus/metrics2/01KY911H6KGERPD8DEVSSGC6GC/chunks/000001
-10.7 MB    /var/lib/prometheus/metrics2/01KY97X8EJG2VFW7F2KTZH0J3D/chunks/000001
-10.6 MB    /var/lib/prometheus/metrics2/01KY9NMPYK19FHQEY478JKAQ8A/chunks/000001
-8.4 MB     /var/lib/prometheus/metrics2/chunks_head/026295
...

Installation

uv sync