From 46222ceb3586394df7e9436ee68bfcb4c95abd63 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 10 Nov 2014 00:35:14 +0000 Subject: Add some of the ugly scripts used for autobuild --- getfromshards.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 getfromshards.sh (limited to 'getfromshards.sh') 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 -- cgit v1.2.1