From owner-freebsd-hubs Wed Mar 20 00:05:22 1996 Return-Path: owner-hubs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA12729 for hubs-outgoing; Wed, 20 Mar 1996 00:05:22 -0800 (PST) Received: from mail.rwth-aachen.de (mail.RWTH-Aachen.DE [137.226.144.9]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id AAA12711 for ; Wed, 20 Mar 1996 00:05:15 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de) by mail.rwth-aachen.de (PMDF V5.0-4 #13110) id <01I2K1ASV78W001JTA@mail.rwth-aachen.de> for freebsd-hubs@freefall.FreeBSD.org; Wed, 20 Mar 1996 09:08:30 +0100 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id JAA19957 for freebsd-hubs@freefall.cdrom.com; Wed, 20 Mar 1996 09:11:38 +0100 Date: Wed, 20 Mar 1996 09:11:38 +0100 From: "Christoph P. Kukulies" Subject: Re: mirror and perl To: freebsd-hubs@freefall.FreeBSD.org Message-id: <199603200811.JAA19957@gilberto.physik.rwth-aachen.de> Content-transfer-encoding: 7BIT Sender: owner-hubs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Ok, I moved to 2.2-current, moved to perl5.002, still I get all my contents of ftp://ftp.freebsd.org/pub/FreeBSD/distfiles written into my /a/FreeBSD directory rather than /a/pub/FreeBSD/distfiles after every nightly running mirror. Here is my mirror file: #!/bin/sh # Run regularly to update the FreeBSD area cd /a/FreeBSD date >mirror.freebsd.out /home/kuku/mirror/mirror -d -F -gftp.freebsd.org:/pub/FreeBSD/FreeBSD-current/ >> mirror.freebsd.out 2>&1 /home/kuku/mirror/mirror -d -F -gftp.freebsd.org:/pub/FreeBSD/FreeBSD-stable/ >> mirror.freebsd.out 2>&1 /home/kuku/mirror/mirror -d -F -gftp.freebsd.org:/pub/FreeBSD/distfiles/ >> mirror.freebsd.out 2>&1 /home/kuku/mirror/mirror -d -F -gftp.freebsd.org:/pub/FreeBSD/docs/ >> mirror.freebsd.out 2>&1 /home/kuku/mirror/mirror -d -F -gftp.freebsd.org:/pub/FreeBSD/incoming/ >> mirror.freebsd.out 2>&1 /home/kuku/mirror/mirror -d -F -gftp.freebsd.org:/pub/FreeBSD/packages-2.1/ >> mirror.freebsd.out 2>&1 /home/kuku/mirror/mirror -d -F -gftp.freebsd.org:/pub/FreeBSD/packages-current/ >> mirror.freebsd.out 2>&1 /home/kuku/mirror/mirror -d -F -gftp.freebsd.org:/pub/FreeBSD/tools/ >> mirror.freebsd.out 2>&1 And here is head mirrorr.pl: #!/usr/local/bin/perl5.002 # Make local directories mirror images of a remote sites # By Lee McLoughlin # You can do what you like with this except claim that you wrote it or # give copies with changes not approved by Lee. Neither Lee nor any other # organisation can be held liable for any problems caused by the use or # storage of this package. # # $Id: mirror.pl,v 2.8 1995/08/06 14:03:52 lmjm Exp lmjm $ # $Log: mirror.pl,v $ # Revision 2.8 1995/08/06 14:03:52 lmjm # Trap a wider range of signals to aid in debugging under perl5 # Avoid looping processing symlinks. # --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de