Olav Mørkrid ha scritto:
hi

let's say i fetch 10 files from a server with wget.

then i want to download any modifications to these files.

HOWEVER, if a new version of a file is downloaded, i want a backup of
the old file (eg. write to <filename>.bak, or possibly <filename>.001
and .002 to keep a record of all versions of a file.

can wget do this?

yes. if file X is already present in your filesystem, by default wget downloads the new file and saves it as "X.1".

i tried to combine -N with -nc, which would seem logical (do timestamp
checking, and prevent overwriting), but wget protests that they are
mutually exclusive.

and if i use no options, then wget fetches a new file even though it's
not updated.

you should not use -nc, just -N.

--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi                          http://www.tortonesi.com

University of Ferrara - Dept. of Eng.    http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux            http://www.deepspace6.net
Ferrara Linux User Group                 http://www.ferrara.linux.it

Reply via email to