From owner-freebsd-questions@FreeBSD.ORG Sun Oct 1 12:14:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DA8616A403 for ; Sun, 1 Oct 2006 12:14:21 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96AC643D70 for ; Sun, 1 Oct 2006 12:14:11 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7]) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.03) with ESMTP id k91CEAjq018983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 1 Oct 2006 05:14:10 -0700 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.03) with ESMTP id k91CE7Su030404 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 1 Oct 2006 05:14:09 -0700 Message-ID: <451FB10B.1020506@u.washington.edu> Date: Sun, 01 Oct 2006 05:14:03 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.7 (X11/20060929) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20061001112048.GA27768@teddy.fas.com> In-Reply-To: <20061001112048.GA27768@teddy.fas.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.0.266434, Antispam-Engine: 2.4.0.264935, Antispam-Data: 2006.10.1.44442 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Using wget to mirror just part of a web site? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Oct 2006 12:14:21 -0000 -----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-----