D
D
Dmitriy1968 Dmitriy19682019-09-30 13:20:28
linux
Dmitriy1968 Dmitriy1968, 2019-09-30 13:20:28

How to commit all changes in a certain directory using a checksum?

1) I create a file with the checksum of all files in a certain directory
hashdeep -rlc md5 . > ~/checksums.txt
2) After some time, I check if there are any changes in the directory
hashdeep -ravvl -k ~/checksums.txt .
3) I look at which particular files the checksum
hashdeep -rX -k ~/checksums.txt does not match.
Using item 3, I can only determine the names and cache of the changed files. And with the help of item 2 I can see the statistics, but without specifying specific file names. It is necessary to display the names of the files:
1) deleted
2) newly created
3) renamed

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Chernykh, 2019-09-30
@sashkets

discover tripwire

S
Sergey Sokolov, 2019-09-30
@sergiks

Maybe git? At the same time, you can see what exactly has changed in the files and, if you wish, roll back.

R
Roman Mirilaczvili, 2019-09-30
@2ord

Options:
1. try the incron utility
2. try the auditctl utility
3. write a Shell/Python script using the md5sum utility and inotify.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question