From d6d6e2ca00723a81aa6f0f6dc21fcd264e51c7b1 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Jul 2009 22:31:47 -0400 Subject: [PATCH 1/1] Initial check in of mirroring scripts --- OPTIONS.sh | 1 + cygwin | 11 +++++++++++ kernel | 12 ++++++++++++ ubuntu-archive | 20 ++++++++++++++++++++ ubuntu-releases | 20 ++++++++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 OPTIONS.sh create mode 100755 cygwin create mode 100755 kernel create mode 100755 ubuntu-archive create mode 100755 ubuntu-releases diff --git a/OPTIONS.sh b/OPTIONS.sh new file mode 100644 index 0000000..faa85b0 --- /dev/null +++ b/OPTIONS.sh @@ -0,0 +1 @@ +MIRRORDIR=/ifs/mirror diff --git a/cygwin b/cygwin new file mode 100755 index 0000000..194049d --- /dev/null +++ b/cygwin @@ -0,0 +1,11 @@ +#!/bin/sh + +. ./OPTIONS.sh + +RSYNCSOURCE=rsync://www.cygwin.com/cygwin-ftp +BASEDIR=${MIRRORDIR}/cygwin + +rsync --recursive --times --links --hard-links \ + --stats \ + -P \ + ${RSYNCSOURCE} ${BASEDIR} | tee -a ~/rsync.log diff --git a/kernel b/kernel new file mode 100755 index 0000000..ff7d6f4 --- /dev/null +++ b/kernel @@ -0,0 +1,12 @@ +#!/bin/sh + +. ./OPTIONS.sh + +#RSYNCSOURCE=rsync://releases.ubuntu.com +RSYNCSOURCE=rsync://www.kernel.org/all +BASEDIR=${MIRRORDIR}/kernel + +rsync --recursive --times --links --hard-links \ + --stats \ + -P \ + ${RSYNCSOURCE} ${BASEDIR} | tee -a ~/rsync.log diff --git a/ubuntu-archive b/ubuntu-archive new file mode 100755 index 0000000..446f572 --- /dev/null +++ b/ubuntu-archive @@ -0,0 +1,20 @@ +#!/bin/sh + +. ./OPTIONS.sh + +RSYNCSOURCE=rsync://archive.ubuntu.com/ubuntu +#RSYNCSOURCE=rsync://ubuntu.media.mit.edu/ubuntu +BASEDIR=${MIRRORDIR}/ubuntu + +rsync --recursive --times --links --hard-links \ + --stats \ + -P \ + --exclude "Packages*" --exclude "Sources*" \ + --exclude "Release*" \ + ${RSYNCSOURCE} ${BASEDIR} | tee -a ~/rsync.log + +rsync --recursive --times --links --hard-links \ + --stats --delete --delete-after \ + -P \ + --exclude "project/trace/${HOSTNAME}" \ + ${RSYNCSOURCE} ${BASEDIR} | tee -a ~/rsync.log diff --git a/ubuntu-releases b/ubuntu-releases new file mode 100755 index 0000000..b0d47bc --- /dev/null +++ b/ubuntu-releases @@ -0,0 +1,20 @@ +#!/bin/sh + +. ./OPTIONS.sh + +RSYNCSOURCE=rsync://releases.ubuntu.com/releases +#RSYNCSOURCE=rsync://ubuntu.media.mit.edu/ubuntu-releases +BASEDIR=${MIRRORDIR}/ubuntu-releases + +rsync --recursive --times --links --hard-links \ + --stats \ + -P \ + --exclude "Packages*" --exclude "Sources*" \ + --exclude "Release*" \ + ${RSYNCSOURCE} ${BASEDIR} | tee -a ~/rsync.log + +rsync --recursive --times --links --hard-links \ + --stats --delete --delete-after \ + -P \ + --exclude "project/trace/${HOSTNAME}" \ + ${RSYNCSOURCE} ${BASEDIR} | tee -a ~/rsync.log -- 2.45.2