handy iso upgrade rsync script

Rodolfo J. Paiz rpaiz at simpaticus.com
Mon Nov 1 06:28:13 UTC 2004


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 at simpaticus.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20041101/5b8abb81/attachment.sig>


More information about the fedora-test-list mailing list