Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/smondet/dircmp

Small OCaml tool to compare big directories with MD5 hashes
https://github.com/smondet/dircmp

Last synced: 26 days ago
JSON representation

Small OCaml tool to compare big directories with MD5 hashes

Awesome Lists containing this project

README

        

Directory Comparison

** Build:
ocamlfind ocamlc -package unix -linkpkg dircmp.ml -o dircmp

** Run:

See “dircmp help”, and then “dircmp -help”.

One example:

On machine1:
dircmp digest -parse-tree path/to/dir -save-to dir_on_machine1.dircmp
On machine2:
dircmp digest -parse-tree path/to/dir -save-to dir_on_machine2.dircmp
Move (scp) the .dircmp files to machine3
dircmp diff dir_on_machine1.dircmp dir_on_machine2.dircmp

(The extension if now important for diffing)

Another example:

dircmp digest -parse-tree path/to/dir1 -print-to dir1.txt
dircmp digest -parse-tree path/to/dir1 -print-to dir2.txt

diff dir1.txt dir2.txt