Using wget to mirror just part of a web site?

stan stanb at panix.com
Sun Oct 1 05:48:14 PDT 2006


On Sun, Oct 01, 2006 at 05:14:03AM -0700, Garrett Cooper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> stan wrote:
> > I looked at the mirror port, and it seemded complex to set up, 
> > and looks like it is not bieng manitaned any more as  teh link
> > reference in it's man page is dead.
> > 
> > So I figure I can use wget to mirror the web sties I need to mirror.
> > 
> > I have it mostly working I'm suing something like:
> > 
> > wget -m -nH -r http://us.archive.ubuntu.com/ubuntu/dists -o /var/log/${site}_mirror.log
> > 
> > But that gets the whole sit. What I want to do is just start at the
> > toop of the "ubuntu/dists" tree.
> > 
> > What am I doing wrong?
> > 
> 
> I think this is the option you want:
> 
> - From recursive section of wget(1):
> 
> - -np
> - --no-parent
> 	Do not ever ascend to the parent directory when retrieving 		
> recursively.  This is a useful option, since it guarantees
> 	that only the files below a certain hierarchy will be
> 	downloaded.
> 

Looked correct. But I'm still getting the whole tree, starting at ubuntu.

Thaks for the input though.

-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)


More information about the freebsd-questions mailing list