On Fri, Sep 6, 2024 at 2:42 PM Frank Steinmetzger <war...@gmx.de> wrote:
>
> Am Fri, Sep 06, 2024 at 01:21:20PM +0100 schrieb Michael:
>
> > > > find path-to-directory/ -type f | xargs md5sum > digest.log
> > > >
> > > > then to compare with a backup of the same directory you could run:
> > > >
> > > > md5sum -c digest.log | grep FAILED
>
> I had a quick look at the manpage: with md5sum --quiet you can omit the
grep
> part.
>
> > > > Someone more knowledgeable should be able to knock out some clever
python
> > > > script to do the same at speed.
>
> And that is exactly what I have written for myself over the last 11
years. I
> call it dh (short for dirhash). As I described in the previous mail, I use
> it to create one hash files per directory. But it also supports one hash
> file per data file and – a rather new feature – one hash file at the root
of
> a tree. Have a look here: https://github.com/felf/dh
> Clone the repo or simply download the one file and put it into your path.
>
Thanks for sharing this Frank.

Much appreciated.

Cheers,
Mark

Reply via email to