Skip to content
Snippets Groups Projects

[LOS-589] improve epel sync script

Merged [LOS-589] improve epel sync script
All threads resolved!
Merged Ben Morrice requested to merge los589 into master
All threads resolved!
2 files
+ 104
32
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -7,9 +7,6 @@
[[ $EUID -eq 0 ]] && echo "Do not run it as root. Exit!" && exit 1
#MIRRORSL="rsync.scientificlinux.org::scientific"
# https://admin.fedoraproject.org/mirrormanager/mirrors/EPEL/7
#MIRRORFEDORA="rsync://fedora.mirrors.ovh.net/download.fedora.redhat.com/"
MIRRORFEDORA="rsync://ftp.uni-stuttgart.de/epel"
MIRRORDAG="rsync://apt.sw.be/pub/freshrpms/pub/dag"
MIRRORATRPMS="rsync://rsync.hrz.tu-chemnitz.de/ftp/pub/linux/ATrpms/"
#MIRRORELREPO="elrepo.reloumirrors.net::elrepo"
@@ -48,7 +45,7 @@ help() {
echo " -v = more verbose sync"
echo " -q = be quiet"
echo " -n = noaction"
echo " -s ARG , where ARG centos, dag, jpackage, atrpms, fedora-epel, elrepo, repoforge, emi, linuxtech, centos, centosvault, centosalt, centosdebuginfo"
echo " -s ARG , where ARG centos, dag, jpackage, atrpms, elrepo, repoforge, emi, linuxtech, centos, centosvault, centosalt, centosdebuginfo"
exit 0
}
@@ -63,7 +60,7 @@ done
RSYNC_OPTS="$RSYNC_OPTS $RSYNC_VERBOSE"
[ "$SYNC" == "all" ] && TODO="dag jpackage fedora-epel atrpms elrepo repoforge emi centosvault centosdebuginfo" || TODO=$SYNC
[ "$SYNC" == "all" ] && TODO="dag jpackage atrpms elrepo repoforge emi centosvault centosdebuginfo" || TODO=$SYNC
[ $VERBOSE -eq 1 ] && RSYNC_OPTS="$RSYNC_OPTS --progress"
[ $CHECKSUM -eq 1 ] && RSYNC_OPTS="$RSYNC_OPTS -c"
[ $NOACTION -eq 1 ] && RSYNC_OPTS="$RSYNC_OPTS -n"
@@ -123,33 +120,6 @@ for COMP in ${TODO}; do
RSYNC_OPTS="$RSYNC_OPTS --exclude=1.0/ --exclude=1.5/ --exclude=1.6/ --exclude=1.7/"
;;
# "fedora-linux-releases" ) TOP_REMOTE="$MIRRORFEDORA/linux/releases";
# TOP_LOCAL="/mnt/data1/dist/fedora/linux/releases";
# RSYNC_OPTS="$RSYNC_OPTS --include='23/***' --exclude='*' -H --numeric-ids --delete" ;;
#
# "fedora-linux-development" ) TOP_REMOTE="$MIRRORFEDORA/linux/development";
# TOP_LOCAL="/mnt/data1/dist/fedora/linux/development";
# RSYNC_OPTS="$RSYNC_OPTS --include='rawhide/***' --exclude='*' --exclude='rawhide/Spins/' -H --numeric-ids --delete" ;;
#
# "fedora-linux-updates" ) TOP_REMOTE="$MIRRORFEDORA/linux/updates";
# TOP_LOCAL="/mnt/data1/dist/fedora/linux/updates";
# RSYNC_OPTS="$RSYNC_OPTS --include='23/***' --exclude='*' -H --numeric-ids --delete";;
"fedora-epel")
#TOP_REMOTE="rsync://mirrors.ircam.fr/fedora-epel"
#TOP_REMOTE="rsync://mirror.vutbr.cz/epel"
#TOP_REMOTE="rsync://mirror.vutbr.cz/epel"
#TOP_REMOTE="rsync://ftp.heanet.ie/pub/fedora/epel"
#TOP_REMOTE="rsync://epel.mirrors.ovh.net/fedora-epel" # broken since 03.12 (checked 11.12.2017)
#TOP_REMOTE="rsync://rsync.informatik.rwth-aachen.de/fedora-epel" # broken 13.12.2017
#TOP_REMOTE="rsync://mirror.in2p3.fr/pub/epel"
#TOP_REMOTE="rsync://ftp.fau.de/epel"
#TOP_REMOTE="rsync://archive.linux.duke.edu/fedora-epel"
TOP_REMOTE="rsync://ftp-stud.hs-esslingen.de/epel"
TOP_LOCAL="/mnt/data1/dist/epel"
RSYNC_OPTS="$RSYNC_OPTS --exclude=ppc/ --exclude=ppc64/ --exclude=s390x/ --exclude=ppc64le/ --exclude=.~tmp~ -H --numeric-ids --delete --exclude=5/ --exclude=5Server/ --exclude=5Client/"
;;
"atrpms")
TOP_REMOTE="$MIRRORATRPMS"
TOP_LOCAL="/mnt/data1/dist/atrpms"
Loading