Hello. Tell me what you can do.
Channel OpenVPN is transmitted to archive (30-60 MB), and it is on a remote host not unpacked, as it becomes broken.
First tried to transfer via scp, but there is no support resuming. Now use rsync with checksum verification key. In the script, the command transfer via rsync is spelled out twice: the first time sends file, the second time checks the checksum on the transmitted file and the original. But the problem is that, when passed was a loss, but the second time rsync sees that the checksum does not match, generates the loaded data, but apparently during this resuming is another packet loss and the resulting file never zakachivaetsja to the desired form.
Think about the option to put rsync into a loop, checking the checksum on a file as long as no match. But MB there is some other option?
Thank you in advance for your answers.