Saturday Oct 31, 2009

mirror a website locally using wget

Recently my Favourite actor Chiranjeevi came to the office I used to work earlier to collect funds for flood relief(Last month we had floods in South India which made some thousands home less in the states of Andhra Pradesh and Karnataka). I asked my old colleague to share some photos he had of the visit.Then he kept the photos in a folder and shared them  in his php server and gave me the link to view the photos.

But I wanted to download all the files he shared. So I thought of searching in the google for a for a suitable program that could help me to get the files.Luckily there was a newsletter from zdnetasia in my inbox the same day about how to use wget to mirror a website locally.

Its a single line of command in my ubuntu notebook that did the job:

$ wget -rkp -l6 -np -nH -N http://example.com/

Refer to man page of wget to know what each option does if you really care or visit this link see the original post.

About

This is my personal blog.All the information here reflects my own thoughts and feelings and should not be taken as official information from Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today