Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Oct 2006 05:14:03 -0700
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Using wget to mirror just part of a web site?
Message-ID:  <451FB10B.1020506@u.washington.edu>
In-Reply-To: <20061001112048.GA27768@teddy.fas.com>
References:  <20061001112048.GA27768@teddy.fas.com>

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

- -Garrett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFH7EK6CkrZkzMC68RAgqnAJ95BXcnqL7+Yo2UZq2ZgJu4BKay2gCcCocY
b2Dy751/epG44xu8ZUMc0Ks=
=HVLW
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?451FB10B.1020506>