summaryrefslogtreecommitdiffstats
path: root/getfromshards.sh
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2014-11-10 00:35:14 +0000
committerPascal Terjan <pterjan@gmail.com>2014-11-10 00:35:14 +0000
commit46222ceb3586394df7e9436ee68bfcb4c95abd63 (patch)
treeba6a424291c27e92912306b4148b6d74df399c02 /getfromshards.sh
downloadautobuild-46222ceb3586394df7e9436ee68bfcb4c95abd63.tar
autobuild-46222ceb3586394df7e9436ee68bfcb4c95abd63.tar.gz
autobuild-46222ceb3586394df7e9436ee68bfcb4c95abd63.tar.bz2
autobuild-46222ceb3586394df7e9436ee68bfcb4c95abd63.tar.xz
autobuild-46222ceb3586394df7e9436ee68bfcb4c95abd63.zip
Add some of the ugly scripts used for autobuild
Diffstat (limited to 'getfromshards.sh')
-rwxr-xr-xgetfromshards.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/getfromshards.sh b/getfromshards.sh
new file mode 100755
index 0000000..a0074f2
--- /dev/null
+++ b/getfromshards.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+date=$1
+ip0=$2
+ip1=$3
+ip2=$4
+
+# TODO: Loop on args instead of hardcoding 3 shards
+
+dir="/var/www/bs/autobuild/cauldron/x86_64/core/${date}"
+
+rsync -a --exclude status.core.log ${ip0}:build/${date}/log/ ${dir}/
+rsync -a --exclude status.core.log ${ip1}:build/${date}/log/ ${dir}/
+rsync -a --exclude status.core.log ${ip2}:build/${date}/log/ ${dir}/
+scp ${ip0}:build/${date}/log/status.core.log ${dir}/status.core.log.0
+scp ${ip1}:build/${date}/log/status.core.log ${dir}/status.core.log.1
+scp ${ip2}:build/${date}/log/status.core.log ${dir}/status.core.log.2
+sort ${dir}/status.core.log.{0,1,2} > ${dir}/status.core.log