i'm working on a issue that i have on my sftp server. the issue is that when folder quota is reached and someone try to upload a file, he didnt get any error code and he deposit a 0 bytes file. so i want to know if there's any solution (integrity check for example) to check if the file is well transferred.

thanks !!

link|improve this question
feedback

2 Answers

Not really. The best you could do is run sha1sum via ssh against the remote file and see if that matches the same hash of the local file.

A different tool such as scp or rsync may return an error code on transfer failure.

link|improve this answer
scp and rsync allow to perform ssh file transfert but i specially need to do it using sFTP – achraf May 11 '10 at 12:56
feedback

Compare with md5sum the checksum of the 2 files

link|improve this answer
@ignacio & @drfalk3n : yes but the problem is that i cant perform the checksum on production server. is there any solution to do the check on client side ? – achraf May 11 '10 at 12:08
feedback

Your Answer

 
or
required, but never shown

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