]> asedeno.scripts.mit.edu Git - sipb-mirrors.git/commitdiff
Add Kodi (XBMC) archive mirroring script.
authorLizhou Sha <slz@mit.edu>
Sat, 15 Aug 2015 08:19:08 +0000 (04:19 -0400)
committerLizhou Sha <slz@mit.edu>
Sat, 15 Aug 2015 08:19:08 +0000 (04:19 -0400)
Signed-off-by: Lizhou Sha <slz@mit.edu>
fetch-scripts/kodi [new file with mode: 0644]

diff --git a/fetch-scripts/kodi b/fetch-scripts/kodi
new file mode 100644 (file)
index 0000000..f3dde79
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -x
+set -v
+set -e
+set -u
+
+# See http://kodi.wiki/view/Mirrors for instructions.
+# All U.S. mirrors should use the Georgia Tech mirror,
+# which excludes plugins with possibly infringing files.
+RSYNCSOURCE=rsync://rsync.gtlib.gatech.edu/xbmc/
+BASEDIR=${MIRRORDIR}/kodi
+
+rsync --archive --hardlinks \
+      --delete --delete-after \
+      --stats --verbose \
+      ${RSYNCSOURCE} ${BASEDIR}