[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] downloading a file from a web - which is updated every 24

From: Micah Cowan
Subject: Re: [Bug-wget] downloading a file from a web - which is updated every 24 hours
Date: Sat, 06 Dec 2008 11:36:03 -0800
User-agent: Thunderbird (X11/20081125)

Mingfeng Lin wrote:
> Greetings!
> I'm new to -wget- and haven't found the answer in the help file.  I want
> to download a file from an URL, and this file is updated every 24 hours
> on the server.  What I would like to do is to add a -wget- bat file in
> the startup menu of windows, and then, every time I start the computer
> the -wget- should (1) check with the file on the server and see if a
> copy has been downloaded; if not, download the file and keep it.
> The problem I have is that if I use a -timestamping- option, the file
> will be always replaced/updated with the most recent one.  If I do not
> use this option, then all versions will be saved - however if I startup
> my computer more than once a day, there will be multiple copies of the
> same file.  So I was curious if I missed any options in -wget- that can
> help me with this?

I don't think you missed anything; wget doesn't currently offer a way to
both download the latest file _only_ if it has changed, _and_ write to a
new, unique name, rather than overwrite.

Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq

reply via email to

[Prev in Thread] Current Thread [Next in Thread]