Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to do checksum comparisons between Remote and Local #13

Open
gaiusjaugustus opened this issue Apr 26, 2017 · 2 comments
Open

Script to do checksum comparisons between Remote and Local #13

gaiusjaugustus opened this issue Apr 26, 2017 · 2 comments

Comments

@gaiusjaugustus
Copy link

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.

@julianpistorius
Copy link
Member

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

@niravmerchant
Copy link

niravmerchant commented May 6, 2017

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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants