From owner-freebsd-isp Wed Jul 2 17:46:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA04502 for isp-outgoing; Wed, 2 Jul 1997 17:46:59 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.8.15.25]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA04497 for ; Wed, 2 Jul 1997 17:46:55 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id KAA27660; Thu, 3 Jul 1997 10:46:41 +1000 (EST) Date: Thu, 3 Jul 1997 10:46:39 +1000 (EST) From: "Daniel O'Callaghan" To: Marcin Pasek cc: freebsd-isp@FreeBSD.ORG Subject: Re: Mirroring Sites In-Reply-To: <33BA6B61.DB3@v-m.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 2 Jul 1997, Marcin Pasek wrote: > I am trying to setup a mirroring server based on FreeBsd and I would > like to be abe to update the files once a week by downloading the > neccessary files from the NT or UNIX host automaticly. > > If someone was able to automate the Mirroring process please let me know > how... I really like wget, which you can get from ftp.hilink.com.au:/pub/FreeBSD/ You just say wget -m -nH -r ftp://releng22.freebsd.org/pub/FreeBSD/2.2-970629-RELENG and it fetches the entire tree. One downside is that it creates the pub/FreeBSD under the current directory, as well as the 2.2-970629-RELENG/. To run it from cron, you would probably want to put it in a shell script which changes the directory etc. -q flag makes wget quiet. ------------------------- #!/bin/sh URL=ftp://ftp.freebsd.org/pub/FreeBSD/ DIR=~ftp cd $DIR wget -m -r -nH -q $URL ------------------------- Danny