file comparision after upload

rgb192
rgb192 used Ask the Experts™
on
how can I compare a .zip file

that I uploaded to lamp shared server hostupon.com using windows 10 winscp application

I want to know if file is uploaded properly

I tried araxis merge folder comparison after downloading and uppacking but there must be an easier way
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Natty GregIn Theory (IT)

Commented:
You can use beyond compare, while uploading the file it will do what you asked.
As nattygreg mentioned, you can use Beyond Compare, but it's not a free program:
http://www.scootersoftware.com/features.php

It'd only compare ZIP to ZIP though, not ZIP to the original uncompressed file. You can use 7-zip to test the integrity of the zip file before uploading, then compare the uploaded zip to the local zip.
https://superuser.com/questions/526275/how-can-i-test-all-zip-files-in-a-folder-to-verify-if-they-are-corrupted-or-not


A free alternative to Beyond Compare may be WinMerge 2011, which is said to have FTP support, not sure if that include SFTP too though:
http://alternativeto.net/software/winmerge-2011/
You could perform a hash check before and after transfer
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Gerwin Jansen, EE MVETopic Advisor
Most Valuable Expert 2016
Commented:
Use "unzip -t <your zip file>" to test the integrity of the file on the destination. You need to login to the remote server to do this.

Author

Commented:
You could perform a hash check before and after transfer

how?
Since it's a LAMP server (Linux, Apache, MySQL, and PHP), you could use the following PHP code to hash the files on the server:
http://php.net/manual/en/function.hash-file.php
Topic Advisor
Most Valuable Expert 2016
Commented:
On Linux you do:

md5sum <file>

On Windows there are a lot of small utilities out there that do the same. For example http://www.winmd5.com/

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial