Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Oct 2006 08:48:08 -0400
From:      stan <stanb@panix.com>
To:        Garrett Cooper <youshi10@u.washington.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Using wget to mirror just part of a web site?
Message-ID:  <20061001124808.GA29717@teddy.fas.com>
In-Reply-To: <451FB10B.1020506@u.washington.edu>
References:  <20061001112048.GA27768@teddy.fas.com> <451FB10B.1020506@u.washington.edu>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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)



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20061001124808.GA29717>