About nixCraft

Topics

Wget resume broken download

Posted by Vivek Gite [Last updated: June 19, 2007]

The GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. Recently I was downloading Ubuntu Linux ISO (618 MB) for testing purpose at my home computer. My Uninterrupted Power Supply (UPS) was down. I started download with wget command:

$ wget http://ftp.ussg.iu.edu/linux/ubuntu-releases/5.10/ubuntu-5.10-install-i386.iso
Due to power supply problem, my computer rebooted at 98% download. Again, after reboot I typed wget:
$ wget http://ftp.ussg.iu.edu/linux/ubuntu-releases/5.10/ubuntu-5.10-install-i386.iso
However, wget restarted to download complete ISO image again. I thought wget should resume partially downloaded ISO file.

Command to resume file download with wget

After reading man page, I found -c option. It will continue getting a partially downloaded file. This is useful when you want to finish a download started by a previous instance of wget, or by another program.
$ wget -c http://ftp.ussg.iu.edu/linux/ubuntu-releases/5.10/ubuntu-5.10-install-i386.iso

See also:

Tell us how we're doing: Please answer a few questions about your experience to help us improve nixCraft.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Mork Smith Says:

    Use option -c (aka “continue”

  2. hobo Says:

    wish i’d know then yesterday when i had to restart a download of a 4.7GB dvd iso from the 4 GB point :(
    cheers

  3. Resume broken download with Wget « Kenno’s OpenNote Says:

    [...] Wget resume broken download Posted in Tutorial. [...]

  4. WebTenet Says:

    Thanks a lot. You saved my day!

  5. Hammad Says:

    Man you saved my time. It happened twice first time i started downloaded again but this time i have downloaded already much more and ‘-c’ has saved the time for me.

    Thanks

  6. Anjanesh Says:

    I’ve now switched to wget on windows (gnuwin32 wget) in favour of other download programs like flashget etc - now that i know that wget can resume.

  7. rahul Says:

    Thanks a lot !! wget is my fav command line tool i never knew abt this option ! this time it happend my internet connection suddenly got disconnected while downloadin an .iso file
    -c option really saved my time ! thx again :)

  8. hibi Says:

    Great article… helped me a lot! thx

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.