Preserving directory times on mirrors created with wget

Paul Koning Paul_Koning at Dell.com
Wed Jan 7 14:04:58 CST 2009


>>>>> "Al" == Al Kossow <aek at bitsavers.org> writes:

 Al> General question about mirroring with wget that has been driving
 Al> me crazy for a couple of days.

 Al> My mirror of bitsavers is maintained using wget to my local work
 Al> machine.

 Al> Over the break, I switched to 10.5 of OS X, and got the latest
 Al> darwin port of wget.

 Al> In the version I had been running, directory dates were
 Al> maintained

 Al> ...using the same command (wget -m -np ftp://...) I now get

 Al> drwxrwxr-x 2 pdp1 pdp1 4096 Jan 7 11:41 .  drwxrwxr-x 3 pdp1 pdp1
 Al> 4096 Jan 7 11:37 ..  -rw-rw-r-- 1 pdp1 pdp1 479 Jan 7 11:37
 Al> .listing -rw-rw-r-- 1 pdp1 pdp1 3835317 Mar 3 2004
 Al> M-4660_IOU-40_Jun79.pdf -rw-rw-r-- 1 pdp1 pdp1 8160815 Mar 3 2004
 Al> M-4908_Q30cpuTech_1983.pdf

 Al> I remember having a hell of a time finding a version that had the
 Al> correct directory behavior, and now I've forgotten what I had
 Al> done to get it to work.

 Al> Anyone recognize this?

No, but I just tried it on my 10.5 system where I installed wget
1.11.4.  I don't remember how; most likely I built it from source
since I don't like Fink at all.  It works as expected: -m is
documented to do the right thing and indeed it does.

	   paul







More information about the cctech mailing list