From owner-freebsd-questions@FreeBSD.ORG Sun Oct 1 12:48:14 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 85BEA16A403 for ; Sun, 1 Oct 2006 12:48:14 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 206E243D6A for ; Sun, 1 Oct 2006 12:48:10 +0000 (GMT) (envelope-from stanb@panix.com) Received: from mailspool2.panix.com (mailspool2.panix.com [166.84.1.79]) by mail2.panix.com (Postfix) with ESMTP id 54B6F9D85D; Sun, 1 Oct 2006 08:48:09 -0400 (EDT) Received: from teddy.fas.com (c-68-58-232-106.hsd1.sc.comcast.net [68.58.232.106]) by mailspool2.panix.com (Postfix) with ESMTP id A814F34CBE4; Sun, 1 Oct 2006 08:48:09 -0400 (EDT) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1GU0jo-0007lZ-00; Sun, 01 Oct 2006 08:48:08 -0400 Date: Sun, 1 Oct 2006 08:48:08 -0400 From: stan To: Garrett Cooper Message-ID: <20061001124808.GA29717@teddy.fas.com> Mail-Followup-To: Garrett Cooper , freebsd-questions@freebsd.org References: <20061001112048.GA27768@teddy.fas.com> <451FB10B.1020506@u.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <451FB10B.1020506@u.washington.edu> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 08:42:06 up 167 days, 9:44, 1 user, load average: 0.01, 0.00, 0.01 User-Agent: Mutt/1.5.4i Sender: Stan Brown Cc: freebsd-questions@freebsd.org 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:48:14 -0000 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)