Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a big gzipped file which is 2.5G in size, I tried scp it from the remote server, after the transfer has finished, I md5sum checked it, it failed. The transfer was completed and the file size(in bytes) are exactly the same.

My question is how can I transfer this file reliably with scp or with any other tool?

Thanks.

share|improve this question
    
Please improve your question with any other information you might have, i.e., if you are sure that the transfer completed, are the file sizes identical? What are the source and target operating systems and file systems? What kind of access do you have on the remote host? Can you run rsync or a simple web server there (via Python, perhaps) to then get the file with wget or curl? –  xorbyte Mar 9 '12 at 6:43
add comment

2 Answers

Bittorent, DirectConnect clients also verify checksums on transfer and re-transfer broken blocks

share|improve this answer
add comment

rsync will do its best to make sure that the file transferred is intact, provided you don't override its normal behavior.

share|improve this answer
    
Does -e option count as 'override normal behavoir'? –  Shawn Mar 9 '12 at 6:45
    
Nope. rsync isn't that concerned about the transport. As long as it can talk to rsync on the other side, it's all good. –  Ignacio Vazquez-Abrams Mar 9 '12 at 6:58
    
Do you mean an rsync server on the remote? I don't have one but it looks running fine. –  Shawn Mar 9 '12 at 7:04
2  
rsync running on the local system opens a shell on the remote system and runs rsync there, and then the two instances of rsync communicate over the link. –  Ignacio Vazquez-Abrams Mar 9 '12 at 7:06
    
Turns out rsync isn't reliable either, I downloaded a couple of large files with rsync, some were fine some were not. –  Shawn Mar 13 '12 at 1:30
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.