Hi Kelvin! I must admit that I am a bit puzzled.
> I am trying to mirror a web site that has many > hierarchical levels. > I am using the command > wget -m -k $site > which allows me to view the site fine. > However, I wish the mirror to make a directory > structure that also mimics the website rather than > having the html files in a single directory. Normally, your syntax should do this. With -r (and -m ist short for -r -N IIRC) the host directories should be created locally as well. Here are some lines from the wget manual: ******************** -nd --no-directories Do not create a hierarchy of directories when retrieving recursively. With this option turned on, all files will get saved to the current directory, without clobbering (if a name shows up more than once, the filenames will get extensions .n). -x --force-directories The opposite of -nd--create a hierarchy of directories, even if one would not have been created otherwise. E.g. wget -x http://fly.srk.fer.hr/robots.txt will save the downloaded file to fly.srk.fer.hr/robots.txt. -nH --no-host-directories Disable generation of host-prefixed directories. By default, invoking Wget with -r http://fly.srk.fer.hr/ will create a structure of directories beginning with fly.srk.fer.hr/. This option disables such behavior. ******************** So, I'd recommend trying the -x switch, although I am not sure what your problem is exactly. CU Jens -- NEU : GMX Internet.FreeDSL Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl