Answer the question
In order to leave comments, you need to log in
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
Maybe git? At the same time, you can see what exactly has changed in the files and, if you wish, roll back.
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 questionAsk a Question
731 491 924 answers to any question