# sys-compare Check Filesystem Integrity via "Snapshots" containing hash of all files within specified directories. ## Installation ```shell cargo install --path ./ ``` ### Modes ```shell Usage: sys-compare Commands: create Create a snapshot compare Compare two snapshots help Print this message or the help of the given subcommand(s) Options: -h, --help Print help ``` ### Create Snapshot ```shell Usage: sys-compare create --root-dir --output-path Options: -r, --root-dir Directory to create snapshot from -o, --output-path Snapshot output/save location -h, --help Print help ``` ### Compare Snapshots ```shell Usage: sys-compare compare [OPTIONS] --left --right Options: -l, --left left side of diff -r, --right right side of diff -s, --selection OPTIONAL: specify which change type specifically to return -c OPTIONAL: when using selection specify to return count only or not [possible values: true, false] -h, --help Print help ``` ## Example output ```shell $ sys-compare create -r /etc -o ~/test.snapshot Creating snapshot.. Total FileHash Entries 1891 $ sudo touch /etc/2 $ sys-compare create -r /etc -o ~/test2.snapshot Creating snapshot.. Total FileHash Entries 1892 $ sys-compare compare -l ~/test.snapshot -r ~/test2.snapshot Created: 1 Deleted: 0 Changed: 0 $ sys-compare compare -l ~/test.snapshot -r ~/test2.snapshot -s created /etc/2 Created: 1 $ sys-compare compare -l ~/test.snapshot -r ~/test2.snapshot -s created -c true 1 ``` ## Development and Collaboration #### Feel free to open a pull request, please run the following prior to your submission please! echo "Run clippy"; cargo clippy -- -D clippy::all echo "Format source code"; cargo fmt -- --check