Re: handy iso upgrade rsync script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 01 November 2004 01:28, Rodolfo J. Paiz wrote:
>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-i
>> >386 -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,

Exellent, thank you very much.

>
>#!/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

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.28% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.


[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]