[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-mirrors] Eclipse update site mirror

Eclipse WebMaster (Denis Roy) wrote:
Hi,

Thanks - we need more Update mirrors!

Simply add this RSYNC line to your script:

rsync -rtlv --delete download.eclipse.org::eclipseMirror/eclipse/updates/ /path/to/eclipse.org mirror/eclipse/updates/

I will be looking for your Update content at this URL:
http://eclipse.gabriel.co.hu/eclipse/updates/3.1/site.xml

When you are synced, please let me know and I'll add you to the Updates list.


It is synced.
Another thing: I have updated (and enhanced a bit) the mirror script, I provide it as attachment here. The locking included is a very primitive one, I would be happy if someone could improve it and send it back to us :)


Regards,
Akos
#!/bin/bash
host download.eclipse.org
hres=$?
if [ $hres -ne 0 ]; then
echo "Host resolution failed" >/dev/stderr
exit 1
fi

LOCKFILE="/tmp/eclipse_lockfile"
if [ -e $LOCKFILE ]; then
echo "Lockfile exists" >/dev/stderr
exit 1
fi
touch $LOCKFILE

##
## This is the official eclipse.org mirror site script.
##
## Set your options and run as a cronjob.
##
## Last updated: 2004-11-25 by webmaster@xxxxxxxxxxx
##


##
## User-defined options

# Set the base path for your mirror site here
# No ending /
mirror_path="/export/eclipse"

# Select the content you want to mirror.
# Please see http://eclipse.org/downloads for information on the space requirements.

##################
#
# IMPORTANT: if you change the content you mirror, please advise the
# webmaster@xxxxxxxxxxxx  Thank you.
#
##################

# full_eclipse is a complete eclipse.org mirror.  
# Set all other options to 'no' if you say yes here.
full_eclipse=no

# full_patform is the Eclipse Platform project.
# It includes Stable, Release, Nightly, Maintenance and Integration build.
# it doesn't include any other project (tools, webtools, technology, birt, etc)
full_platform=no

# Eclipse Platform - Release builds only.  Say no here if you said yes to full_platform.
# This is what most people want.
platform_release=yes

# Eclipse Platform - Stable builds only.  Say no here if you said yes to full_platform.
# This is what most people want.
platform_stable=yes

# BIRT project
full_birt=no

# technology Project
full_technology=no

# Tools project.
full_tools=no

# Testing and Performance Tools Project (TPTP)
full_tptp=no

# Webtools project.
full_webtools=no

# Updates
updates=yes

## End: User-defined options
##



# required "mirror root" timestamp.
# All mirror sites must get this.
rsync -tlv --delete download.eclipse.org::eclipseMirror/TIME $mirror_path 


if [ $full_eclipse == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/* $mirror_path
fi 

if [ $full_platform == yes ] ; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/eclipse/* $mirror_path/eclipse/
fi

if [ $platform_release == yes -a $platform_stable == yes ]; then
	rsync -tlv --delete download.eclipse.org::eclipseMirror/eclipse/* $mirror_path/eclipse/
	rsync -tlv --delete download.eclipse.org::eclipseMirror/eclipse/downloads/* $mirror_path/eclipse/downloads/
	rsync -tlv --delete download.eclipse.org::eclipseMirror/eclipse/images/* $mirror_path/eclipse/images/
	rsync -tlv --delete download.eclipse.org::eclipseMirror/eclipse/downloads/drops/* $mirror_path/eclipse/downloads/drops/
fi

if [ $platform_release == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/eclipse/downloads/drops/R-* $mirror_path/eclipse/downloads/drops/
fi

if [ $platform_stable == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/eclipse/downloads/drops/S-* $mirror_path/eclipse/downloads/drops/
fi

if [ $full_birt == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/birt/* $mirror_path/birt/
fi

if [ $full_technology == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/technology/* $mirror_path/technology/
fi

if [ $full_tools == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/tools/* $mirror_path/tools/
fi

if [ $full_tptp == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/tptp/* $mirror_path/tptp/
fi

if [ $full_webtools == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/webtools/* $mirror_path/webtools/
fi

if [ $updates == yes ]; then
	rsync -rtlv --delete download.eclipse.org::eclipseMirror/eclipse/updates/ $mirror_path/updates/ 
fi

rm $LOCKFILE