2

Trying to upload very big file and after some hours connection is lost. When I try to upload one more time, there is only Append option in Midnight Commander, which is not the same as Resume...

1

You could use curl to continue interrupted file upload.

curl ftp://ftp_server_host:port/path_on_server/ -u username:userpassword -T filename_to_upload -C - -#
  • 1
    What does the only - do before -#? – Rahil Wazir Sep 30 '14 at 10:43
  • @RahilWazir, if i'm remembering correctly, it preserve upload file name on server side. You could check it, with few simple experiments. Something like from tar examples over ssh, from this post: All your wishes come true: File transfer via SSH goo.gl/VjJ44C – Vitalie Ghelbert Sep 30 '14 at 17:30
  • I think -C - is connected with each other, removing either of these giving me expected positive number parameter – Rahil Wazir Sep 30 '14 at 17:55
  • 1
    curl --help | less, return this info regarding: -C, --continue-at OFFSET Resumed transfer offset. When you put "-C -", it check how much is uploaded on server, then resume upload, else, you could specify uploading from a custom OFFSET. – Vitalie Ghelbert Oct 2 '14 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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