blob: a0074f23051196e46025f102ddbccd92617c6915 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|