On Mon, 2004-11-01 at 01:19 -0400, Gene Heskett wrote:
On Friday 29 October 2004 20:31, Salane KIng wrote:
>sunsite.mff.cuni.cz::ftp/OS/Linux/Dist/Fedora.RC/3/i386/iso/FC3-i386
>-disc*
Can someone please translate this into an access to the
duke.edu rsync
server? I'm playing the 10,000 monkeys scene here and failing to
find the correct syntax from the responses I'm getting.
I'm very short on time right now, but I can at least point you to my
mirror script which uses rsync off Duke. Maybe that will help you figure
out the correct paths.
Cheers,
#!/bin/bash
# Name: mirror v1.5
# Date: 2 June 2004
#
# Description: This is a script to mirror the FTP sites I choose to keep
# on my server. It can mirror either a single site or all sites
depending
# on the parameters given on the command line.
#
# Usage: mirror [redhat|fedora|all]
case $1 in
redhat)
SITE="ftp.dulug.duke.edu"
SOURCEPATH="redhat-ftp/redhat"
LOCALPATH="/data/pub/redhat"
;;
fedora)
SITE="mirror.linux.duke.edu"
SOURCEPATH="fedora-linux-core"
LOCALPATH="/data/pub/fedora/linux/core"
;;
all)
/home/rpaiz/mirror/mirror redhat &
/home/rpaiz/mirror/mirror fedora &
exit 0
;;
*)
echo "Invalid parameter; please try again."
echo
exit 1
esac
# Execute the mirroring process and create the output file.
rsync -avP --exclude-from=excluded-$1 --delete --delete-excluded \
--max-delete=100 $SITE::$SOURCEPATH/ $LOCALPATH/ > report-$1.$(date +
%F)
# Done.
exit 0
--
Rodolfo J. Paiz <rpaiz(a)simpaticus.com>