Static mirror copy of a dinamic website

written by Admin


Posted on 2012-12-02


Problem

I must create a static running copy of all pages, images, styles, etc of a dinamic modern website.

Solution

Run the following line of code in a shell:
wget -k -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://www.website.com

All necessary files will be saved and all links will be rewritten to save a static browseable copy of the website. You can also use this code to host temporarly a static copy of the website.

Using -K all files will be copied unmodified.

Feedback


Comments

Leave a Comment:

Search

Welcome

We need collaboration and a real boost from our community: write us an email for every trick you find!

This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

Our database grows if YOU send us your tips and trick as soon as you find them every day!