Clone Website

Tools and techniques to clone a website.


Perform a full clone:

wget -m -p -k <URL>

Only clone N-levels deep:

wget -r -l <N> -p -k <URL>
Option Description
-m Turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings.
-p Causes Wget to download all the files that are necessary to properly display a given HTML page. This includes such things as inlined images, sounds, and referenced stylesheets.
-k Converts the links in the document to make them suitable for local viewing.
-r Turn on recursive retrieving.
-l <N> Specify recursion maximum depth level (default 5).