wget -N http://www.yoururl.com/
where www.yoururl.com is the url you want to revisit should do the trick nicely. The -N
switch will ask the server for the last-modified date. If the local file is newer, the remote file will not be re-fetched. However, if the remote file is more recent, wget
will proceed fetching it normally. Note that you'll want to launch wget in the same directory you launched it originally.
A note on limitations quoted from man wget
:
If a file is downloaded more than once in the same directory,
Wget's behavior depends on a few options, including -nc. In
certain cases, the local file will be clobbered, or overwritten,
upon repeated download. In other cases it will be preserved.
When running Wget without -N, -nc, -r, or -p, downloading the same
file in the same directory will result in the original copy of file
being preserved and the second copy being named file.1. If that
file is downloaded yet again, the third copy will be named file.2,
and so on. (This is also the behavior with -nd, even if -r or -p
are in effect.) When -nc is specified, this behavior is
suppressed, and Wget will refuse to download newer copies of file.
Therefore, ""no-clobber"" is actually a misnomer in this
mode---it's not clobbering that's prevented (as the numeric
suffixes were already preventing clobbering), but rather the
multiple version saving that's prevented.
Depending on your situation you may also need the -r
(recursive) and -l (level depth) switches. For more information on the many switches and options available, see man wget
If wget doesn't work for you:
An alternative mentioned here to wget
is httrack
which is also capable of mirroring a website as well as updating it.
httrack is available by first enabling the Universe repository and then installing either via the software center or from the command line with the command sudo apt-get update && sudo apt-get install httrack
Sources wget:
https://superuser.com/questions/283481/how-do-i-properly-set-wget-to-download-only-new-files
man wget
http://www.editcorp.com/Personal/Lars_Appel/wget/wget_5.html
Source httrack:
http://www.linuxcertif.com/man/1/httrack/