You're right, I wasn't very clear. What I'm wanting to do is Mirror a site, but keep backups of any local files that get replaced because newer versions are being downloaded.
Upon reading the documentation again, I think I originally misunderstood the file.1, file.2 renaming scheme. I *thought* what happened was if a newer file exists on the remote server, the local copy would first be renamed to file.1 and the newer copy would be downloaded in its place. Instead, it looks like the newer copy gets pulled down as file.1 and then file.2, if I'm reading the following from the documentation correctly: "When running Wget without -N, -nc, or -r, 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." I was hoping for this to be the local copy being renamed and the newer file taking its place. Am I reading this right? What I'm trying to do is FTP (using ftp:// instead of http://) a set of directories and files down (hence needing to do recursive, like -m), but keep a backup of older versions locally. Can this be done with wget? Thanks, Dan --- "Jens_Rösner" <[EMAIL PROTECTED]> wrote: > Hi Dan, > > I must admit that I don't fully understand your > question. > > -nc > means no clobber, that means that files that already > exist > locally are not downloaded again, independent from > their age or size or > whatever. > > -N > means that only newer files are downloaded (or if > the size differs). > > So these two options are mutually exclusive. > I could imagine that you want something like > wget --no-clobber --keep-server-time URL > right? > If I understand the manual correctly, this date > should normally be kept > for http, > at least if you specify > wget URL > I just tested this and it works for me. > (With -S and/or -s you can print the http headers, > if you need to.) > > However, I noticed that quite many servers do not > provide a > last-modified header. > > Did this answer your question? > Jens > > > > > > > > I'd love to have an option so that, when > mirroring, it > > will backup only files that are replaced because > they > > are newer on the source system (time-stamping). > > > > Is there a reason these can't be enabled together? __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html