Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been using wget -m to mirror some websites and version 1.8.1 worked exactly as I wanted. However I've now upgraded my Red Hat to 8.0 & Mandrake to 9.0, so I now have wget 1.8.2. Now my wget scripts are spanning external hosts, which didn't happen before. The documentation says that 1.8.2 is just a bug fix with no change for users and also, the man page says that hosts shoulg not be spanned by default. I don't have a .wgetrc file and I can't find anything suspicious in /etc/wgetrc. Any ideas?
hrm, odd, a quick fix would be to use the -L option.... but -m should be working...
for whats it worth, I just used wget 1.8.2 to mirror a website with plenty of external links, and it worked fine....perhaps the sites you are trying to mirror are doing something that is tricking wget? could you give me an example of a site you tried to mirror with the -m option that grabbed content from elsewhere?
I tried your rubi-con site which worked fine. One of the sites I use is www.manchester.com, which still doesn't. I just used 'wget -m www.manchester.com -o log.txt&' (I usually also include -w, but I wanted a quick result). After about 8 hours, it was still running and I had lots of directories representing external sites; they all contained just a few files.
I going to guess then its something about the web-code on that manchester website, I took a look at it and it seemed pretty goofy, with tons of javascript in there. I bet wget is just getting confused regarding some of the external links.
unless that is, wget was caching that site correctly before, and now it isn't. in that case, I would probably submit a bug to the makers of wget
I tried using -L option, but no change. Also I tried reinstalling 1.8.1 from the Mandrake 8.2 distro; that didn't make any difference either.
I've been looking on the wget list at sunsite.dk and there seem to be other people reporting similar things. It doesn't look like a problem with the wget binaries; maybe something changed elsewhere?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.