resbazaz/Weekly_Projects

Script to do checksum comparisons between Remote and Local

Opened this issue · 2 comments

I'd like to have a script that would allow me to connect to a remote server and compare checksums of files in a remote directory and a certain local directory. My hope is that this would be most useful for confirming that all files have been properly transferred.

This would be especially useful for confirming iRODS/Data Store uploads.

ichksum -r /iplant/home/nirav/winning/
Will give you a recursive listing of chksums for irods dir content (in this case dir "winning")

You can then go to same dir on local machine where same dir is

find ./ -type f -exec md5sum {} ;

You can redirect (using > ) to specific files and use your favorite scripting method to compare the 2 files (this is required as output is not formatted the same way )