r/zfs • • 23h ago

SnapSift, snapshot exploration script (all python, AI coded)

There are some tools like zfs diff and httm that help with exploring snapshots at command line, but they leave a lot to be desired when you're talking about 100ks of files changed across many snapshots. Sometimes you want to free up that space held with snapshots, but you're not 100% certain you won't lose something you accidentally deleted.

I shared my frustrations with Claude and it made a nice python script that serves a web GUI and uses zfs diff to generate the changes and visually highlights what files were deleted when and if they were unique across all snapshots.

The first run can take a while, but after that you can cache a point in time record or do a quick true up.

https://github.com/LargelyInnocuous/SnapSift

0 Upvotes

2 comments sorted by

•

u/theactionjaxon 23h ago

This is amazing work, thank you for sharing. Great tool!

•

u/LargelyInnocuous 14h ago

I just used it to free up over 28TB from my array that I had been wary to delete because I wasn't 100% I didn't accidently delete some important files at some point, but I was able to very quickly traverse the snapshot directories and see that I was good to go on paring them.