README.md was improved

This commit is contained in:
Robert Vokac 2023-07-30 12:15:51 +02:00
parent adc4f26a39
commit c6c996339c
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -10,8 +10,8 @@ It is inspired by:
## How it works
You go to a directory.
You run the command bin:
* All files in this directory are inspected, new files are added to the database.
You run the command bir:
* All files in this directory are inspected, new files are added to the database, deleted files are removed from the database.
* If the file last modification date in database and on the disk is the same, but the content checksum is different, then a bit rot is detected.
## How to setup your environment on Linux
@ -19,3 +19,15 @@ You run the command bin:
Example:
alias bir='java -jar /rv/data/desktop/code/code.nanoboot.org/nanoboot/bit-inspector/target/bir-inspector-0.0.0-SNAPSHOT-jar-with-dependencies.jar'
## Usage
"Bit Inspector" creates an SQLite database - file ".bir.sqlite3" in the current directory.
There is also created the file ".bir.sqlite3.sha512", which contains the current hash sum of file ".bir.sqlite3".
You can create file .birignore containing the names of the files/directories you wish to ignore
* each line should contain exactly one name
* lines starting with # are skipped
* you may use Unix shell-style wildcards