]> asedeno.scripts.mit.edu Git - sipb-mirrors.git/commitdiff
New Gentoo Portage mirror script
authorBenjamin Barenblat <bbaren@mit.edu>
Tue, 27 Oct 2009 00:51:09 +0000 (20:51 -0400)
committerBenjamin Barenblat <bbaren@mit.edu>
Tue, 27 Oct 2009 01:28:46 +0000 (21:28 -0400)
fetch-scripts/gentoo-portage [new file with mode: 0644]

diff --git a/fetch-scripts/gentoo-portage b/fetch-scripts/gentoo-portage
new file mode 100644 (file)
index 0000000..7fc23c4
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Modified from http://www.gentoo.org/doc/en/rsync.xml#doc_chap3
+
+RSYNCSOURCE=rsync://rsync.us.gentoo.org/gentoo-portage
+BASEDIR=${MIRRORDIR}/gentoo/rsync
+
+rsync --recursive --times --links --hard-links \
+      --stats \
+      --verbose \
+      --perms \
+      -D \
+      --delete \
+      --timeout=300
+      ${RSYNCSOURCE} ${BASEDIR}