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.

wget -c -b --content-disposition 'http://example.com/somepath.mp4'

I had some connectivity problems so I had to rerun this command for a few remote files.

According to wget's man page, it will either continue where it left off if possible, or not do anything and leave the existing file alone, but instead it deleted several nearly complete files and started over from the beginning. What the heck?

From the man page: "Beginning with Wget 1.7, if you use -c on a non-empty file, and it turns out that the server does not support continued downloading, Wget will refuse to start the download from scratch, which would effectively ruin existing contents. If you really want the download to start from scratch, remove the file."

share|improve this question
1  
Are you sure the server supports resume of downloads? –  user194323 Feb 17 '13 at 6:14
    
You are aware that --content-disposition is marked as experimental, buggy and most likely not needed? Can you try again with only the -c option? –  Bobby Feb 17 '13 at 12:28

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.