As part of my backups, I often keep an eye into what was changed from one snapshot to another.
But when thousands of files get changed, added or deleted, the output of `restic diff` becomes huge.
I put this short Python script that takes the diff and gives a summary by folder, making easier to understand what happened:
restic diff cf872aab a5986094 | ~/scripts/diff-summary.py
/: M8
/etc/cups: M2
/etc/pihole: M3
/home/fellipec: M1
/home/fellipec/.dropbox: M4
/home/fellipec/.dropbox/events: M1
/home/fellipec/.dropbox/instance1: M2
/home/fellipec/.dropbox/instance1/sync: M2
/home/fellipec/.dropbox/logs/0: +7766 -3877
/home/fellipec/.dropbox/logs/1: +2 -2 M1
/home/fellipec/.dropbox/metrics: M1
/home/fellipec/.megaCmd: M8
/var/backups/navidrome: +2 -2
/var/lib/navidrome: M3
/var/lib/navidrome/plugins/listenbrainz-daily-playlist: M2
To use it, just give the scripts +x permission and pipe the restic diff to it.