How to allow wget to overwrite files
Posted
by
Gnanam
on Server Fault
See other posts from Server Fault
or by Gnanam
Published on 2010-08-17T12:40:14Z
Indexed on
2012/04/13
5:32 UTC
Read the original article
Hit count: 582
Using wget
command, how do I allow/instruct to overwrite my local file everytime, irrespective of how many times I invoke.
Let's say, I want to download a file from the location: http://server/folder/file1.html
Here, whenever I say wget http://server/folder/file1.html
, I want this file1.html
to be overwritten in my local system irrespective of the time it is changed, already downloaded, etc. My intention/use case here is that when I call wget, I'm very sure that I want to replace/overwrite the existing file.
I've tried out the following options, but each option is intended/meant for some other purpose.
- -nc => --no-clobber
- -N => Turn on time-stamping
- -r => Turn on recursive retrieving
© Server Fault or respective owner