From: Razvan Deaconescu Date: Sun, 21 Nov 2010 19:52:10 +0000 (+0200) Subject: add rsync scripts X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=308c478ecb22f48fa4b4a36831348793dc757589;p=utp-swift.git add rsync scripts --- diff --git a/all_base_rsync b/all_base_rsync new file mode 100755 index 0000000..885e044 --- /dev/null +++ b/all_base_rsync @@ -0,0 +1,7 @@ +#!/bin/bash + +ip_array=(141.85.224.201 141.85.224.203 141.85.224.204 141.85.224.205 141.85.224.206 141.85.224.207 141.85.224.208 141.85.224.209 141.85.224.210) + +for ip in ${ip_array[@]}; do + ./ct_rsync $ip 22 +done diff --git a/ct_rsync b/ct_rsync new file mode 100755 index 0000000..2db3067 --- /dev/null +++ b/ct_rsync @@ -0,0 +1,11 @@ +#!/bin/bash + +if test $# -ne 2; then + echo "Usage: $0 hostname port" 1>&2 + exit 1 +fi + +host=$1 +port=$2 + +rsync -avz -e "ssh -p $port" . p2p@$host:razvan/scripts/