summaryrefslogtreecommitdiffstats
path: root/mirroring
diff options
context:
space:
mode:
authorWido den Hollander <wido@42on.com>2016-02-08 11:53:24 +0100
committerWido den Hollander <wido@42on.com>2016-02-29 19:20:51 +0100
commit49c76d6a800bea9f6ec080b9fbefd8e74c442783 (patch)
treea5f06705278581029069cd5765a21e039b25afff /mirroring
parentMerge pull request #7824 from dillaman/wip-aio-watch-notify (diff)
downloadceph-49c76d6a800bea9f6ec080b9fbefd8e74c442783.tar.xz
ceph-49c76d6a800bea9f6ec080b9fbefd8e74c442783.zip
Updated mirroring script to mirror Ceph
It adds new mirror locations which exist for Ceph Signed-off-by: Wido den Hollander <wido@42on.com>
Diffstat (limited to 'mirroring')
-rwxr-xr-xmirroring/mirror-ceph.sh22
1 files changed, 9 insertions, 13 deletions
diff --git a/mirroring/mirror-ceph.sh b/mirroring/mirror-ceph.sh
index ce44b7ba8bd..ef80a63f93e 100755
--- a/mirroring/mirror-ceph.sh
+++ b/mirroring/mirror-ceph.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+set -e
#
# Script to mirror Ceph locally
#
@@ -10,8 +11,15 @@ SILENT=0
# All available source mirrors
declare -A SOURCES
SOURCES[eu]="eu.ceph.com"
+SOURCES[de]="de.ceph.com"
+SOURCES[se]="se.ceph.com"
+SOURCES[cz]="cz.ceph.com"
SOURCES[au]="au.ceph.com"
SOURCES[us]="download.ceph.com"
+SOURCES[hk]="hk.ceph.com"
+SOURCES[fr]="fr.ceph.com"
+SOURCES[us-east]="us-east.ceph.com"
+SOURCES[us-west]="us-west.ceph.com"
SOURCES[global]="download.ceph.com"
function print_usage() {
@@ -77,8 +85,6 @@ fi
#
# Exclude all metadata files
-RET=0
-
rsync ${RSYNC_OPTS} ${SOURCE_HOST}::ceph --recursive --times --links \
--hard-links \
--exclude Packages* \
@@ -90,17 +96,7 @@ rsync ${RSYNC_OPTS} ${SOURCE_HOST}::ceph --recursive --times --links \
--exclude repodata/* \
${TARGET}
-if [ "$?" -ne 0 ]; then
- RET=$?
-fi
-
# Now also transfer the metadata and delete afterwards
rsync ${RSYNC_OPTS} ${SOURCE_HOST}::ceph --recursive --times --links \
--hard-links --delete-after \
- ${TARGET}
-
-if [ "$?" -ne 0 ]; then
- RET=$?
-fi
-
-exit $RET
+ ${TARGET}