Originally Posted by rg3
I've detected -m ascends to the parent directory and downloads 13.0, 13.1, etc. I'd personally use "wget -r -np".
I like this according to the man page, but it ends up downloading everything to this directory:
So it sure works, but I just like getting the files where I expect them. Cuts out other steps later.
My original solution is more useful for downloading a whole distribution which does have a directory tree. This works well for FTP but for HTTP, it downloads other website files you are not interested in. Not good. So I made an improvement.
wget -m -nH -nd -A .txz http://connie.slackware.com/~alien/multilib/13.0/
This will only download the files in the specified directory that end in .txz.
Am I missing anything? What is the problem with ascending to the parent directory? Does that do something nasty I shouldn't be doing? I'm thinking this is a really good solution now. Bravo for making me think about it a little harder ;-)