No description
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Build and Publish / build-and-publish (push) Successful in 32s
|
||
| .forgejo/workflows | ||
| src/restic_compare | ||
| .gitignore | ||
| .python-version | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
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