diff options
author | Pascal Terjan <pterjan@gmail.com> | 2014-11-10 00:35:14 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2014-11-10 00:35:14 +0000 |
commit | 46222ceb3586394df7e9436ee68bfcb4c95abd63 (patch) | |
tree | ba6a424291c27e92912306b4148b6d74df399c02 /getfromshards.sh | |
download | autobuild-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-x | getfromshards.sh | 18 |
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 |