Skip to content

Commit 2bcf4f7

Browse files
bin: added audit_filesystem_corruption script
1 parent 97286ee commit 2bcf4f7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Usage: audit_filesystem_corruption.sh /
2+
# src: https://github.com/jessek/hashdeep
3+
DIR="${1:-$HOME}"
4+
FILE="/tmp/$$.auditfile"
5+
6+
echo "Audit file: $FILE"
7+
# Generate the audit file
8+
hashdeep -c sha256 -r "$DIR" > "$FILE"
9+
# Test the audit
10+
hashdeep -c sha256 -a -v -v -k "$FILE" -r "$DIR"
11+

0 commit comments

Comments
 (0)