How to Force Redownload with wget Command

command linelinuxwget

I had the bad surprise that wget doesn't redownload when a file of the same name already exist.

Is there an option to force him to redownload without deleting the file first on linux ?

Best Answer

wget -O - $url >/path/to-file

Or, if you are mirroring, you can use the -c flag. This will make it so the files are "continued", but since they're already at the size the server is telling wget, it will "continue" them from the beginning.

Related Question