Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 1997 10:46:39 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        Marcin Pasek <marcin@v-m.com>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Mirroring Sites
Message-ID:  <Pine.BSF.3.91.970703103921.869K-100000@panda.hilink.com.au>
In-Reply-To: <33BA6B61.DB3@v-m.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970703103921.869K-100000>