Hashdeep: diferència entre les revisions
Salta a la navegació
Salta a la cerca
mCap resum de modificació |
|||
Línia 20: | Línia 20: | ||
* -r Recursive mode | * -r Recursive mode | ||
* -l relative file paths | * -l relative file paths | ||
* -X Display each failed hash that does not match the list of known hashes | * -X Negative matching (only list differences): Only those files NOT in the list of known hashes are displayed. Display each failed hash that does not match the list of known hashes | ||
* -v Verbose mode | * -v Verbose mode | ||
* -k Load list of known hashes | * -k Load list of known hashes | ||
Línia 28: | Línia 28: | ||
===List how the files have been moved, new files and changed=== | |||
===List how the files have been moved, new files and changed (slower)=== | |||
cd folder2 | cd folder2 | ||
hashdeep -r -l -avv -k hashdeep_$(date +%y%m%d).txt . | hashdeep -r -l -avv -k hashdeep_$(date +%y%m%d).txt . | ||
* -a audit mode | * -a audit mode: Each input file is compared against the set of knowns. An audit is said to pass if each input file is matched against exactly one file in set of knowns. Any collisions, new files, or missing files will make the audit fail | ||
* -vv More verbose mode | * -vv More verbose mode | ||
Revisió del 14:54, 24 gen 2016
Create hash file
cd folder1 hashdeep -r -l . > hashdeep_$(date +%y%m%d).txt
- -r Recursive mode
- -l relative file paths
- -e Estimate time (optional)
To get a deterministic order, use -j0 which disables multithreading (see the man page)
Verify hash on the same or another folder
List new files or changed
cd folder2 hashdeep -r -l -X -v -k hashdeep_$(date +%y%m%d).txt .
- -r Recursive mode
- -l relative file paths
- -X Negative matching (only list differences): Only those files NOT in the list of known hashes are displayed. Display each failed hash that does not match the list of known hashes
- -v Verbose mode
- -k Load list of known hashes
- hashdeep.txt File containing hashes
- dir Name of the directory in question
List how the files have been moved, new files and changed (slower)
cd folder2 hashdeep -r -l -avv -k hashdeep_$(date +%y%m%d).txt .
- -a audit mode: Each input file is compared against the set of knowns. An audit is said to pass if each input file is matched against exactly one file in set of knowns. Any collisions, new files, or missing files will make the audit fail
- -vv More verbose mode
MAN: http://md5deep.sourceforge.net/hashdeep.html More info: https://linhost.info/2010/05/using-hashdeep-to-ensure-data-integrity/