Check if a snapshot has unique blobs

So I backed up an old hard drive that had pictures on it I’m fairly certain I have elsewhere. Out of curiosity, is it possible to see if this snapshot has any unique files? I suppose one way would be to clone the repo, do a prune --max-unused 0, then delete the snapshot, run prune --dry-run and see what the savings would have been?

It would be cool if you could do something like restic stats --find-unique and it prints a list of unique blobs and/or filenames. Just a thought!

1 Like