User Tools

Site Tools


restartable-sha256deep

Restartable sha256deep

Create checksums

find . -type f > /tmp/filelist
while read file; do
    if ! fgrep "$file" incomplete.sha256; then
        echo "$file"
        sha256sum "$file" >> incomplete.sha256
    fi
done < /tmp/filelist

Verify checksums

find . -type f > /tmp/filelist
while read file; do
    if ! fgrep "$file" incomplete.check; then
        echo "$file"
        c=$(mktemp)
        grep "$file" complete.sha256 > $c
        sha256sum -c $c >> incomplete.check
        rm $c
    fi
done < filelist
restartable-sha256deep.txt · Last modified: 2017/08/22 08:21 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki