How to resume downloads using wget

The ability to summarize downloads is essential, especially in countries where internet access is not stable enough or even where electrical current is not. Suppose we start downloading a file and all of a sudden, boom, we run out of internet. After a while everything returns to normal and we can resume the download.

Both Firefox and Chrome / Chromium have this functionality built in and there are even several extensions available that improve them substantially. However, ridiculous as it may sound, there are cases where this method fails, while wget, a simple tool without a graphical interface, has never failed me.


To make it possible to summarize a download, make sure to always use the -c parameter. That way, wget won't delete the downloaded part of the file when trying to resume the download.

Suppose, then, that we start to download a file:

wget -c http://mirrors.kernel.org/archlinux/iso/latest/archlinux-2010.05-core-i686.iso

Boom! The power goes out. After a while the internet returns. And we run again:

wget -c http://mirrors.kernel.org/archlinux/iso/latest/archlinux-2010.05-core-i686.iso

And the result is something like this:


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Anonymous said

    My spouse and I absolutely love your blog and find the majority of your post's to be just what I'm looking for.
    Would you offer guest writers to write content for yourself?

    I wouldn't mind composing a post or elaborating on most of the subjects you write related to here. Again, awesome web log!

    Also visit my blog - global ims media marketing

  2.   alepando said

    «You are a degenerate waster of resources» ... heh heh heh ... just kidding ...

    You cannot deny the elegance and simplicity of a command line that does the same as hundreds of lines of code and consumes system resources and time to activate and download a simple file with Jdownloader.

    JDownloader is very powerful to download many chunks of a file shared on rapidshared, for example.

    Downloading a simple file is killing a simple fly with a bomb ... hehehe

    salu2

  3.   James said

    Interesting trick, although summarizing sounds very bad to me. I do not know if in other latitudes it will be valid, but it seems to me that it is an Anglicism (to summarize) that should be translated by resuming.

  4.   Christian Soto Valencia said

    interesting the trick although I keep something graphical interface
    with jdownloader

  5.   ubunctizing said

    great. At one time I used screen and ntorrent to manage an nslug that I had as a download manager. You should try it. 🙂

  6.   Let's use Linux said

    It probably comes from an Anglicism… anyway, it is used a lot here. 🙁
    Cheers! Paul.

    1.    Juan said

      VERY useful friend, Thank you very much for the contribution!

  7.   Let's use Linux said

    I will try it! Thank you!
    Cheers! Paul.

  8.   Marcelo said

    hehehe nothing better than the classic console ... I happened to think of writing something about wget but I thought it would be very kid ... it's good to distribute knowledge.

  9.   buxxx said

    wget can download links that jdownloader is not capable of

  10.   Roberto said

    The truth is that it is a good trick! worse from what I have tried you can make the wget without the -cy parameter if the power goes out (or the connection is cut or whatever) you put the wget again with the -cy it continues where it left off. That is, it is not necessary to always put the -c but if it is cut it is put to make a resume or re-union without having to remember to put it the first time.

    Thank you, I have been able to download some great videos where it was the first time.

    ps: there is nothing better than the console to have total control of what is happening and also, know how to do things in a way that can be automated when you decide with a script-