Go Premium for a chance to win a PS4. Enter to Win


Using wget to mirror a static website

Posted on 2008-06-16
Medium Priority
Last Modified: 2008-06-16

I'm trying to use wget to mirror website with static content.

wget -r www.site.zyx

It will download all files from the webpage, except those linked to from within .css files.

What am i doing wrong?
Question by:Pétur Ingi Egilsson
  • 2
LVL 17

Expert Comment

ID: 21794889
LVL 10

Author Comment

by:Pétur Ingi Egilsson
ID: 21795225
I tried the -m switch.. same problem.
wget does not look into the .css files it gets to check wether they are linking to other files or not.

Accepted Solution

IgorAL earned 2000 total points
ID: 21799504
Use the newest/lastest wget, see the bug report
This was fixed in this April.
LVL 10

Author Comment

by:Pétur Ingi Egilsson
ID: 21799513
I'm using Debian GNU/Linux.. according the the repos the latest stable version of  Wget is version 1.10.2
Updated it and problem solved.

thanks IgorAL

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Suggested Courses
Course of the Month6 days, 2 hours left to enroll

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question