From 039a6eddb1eafef76417581c24f5d9a3e4eaeb14 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Tue, 3 Aug 2010 20:40:58 +0300 Subject: [PATCH] ControlScripts: add script for rsyncing script files --- .../_sync_single_cluster_container_scripts.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 ControlScripts/_sync_single_cluster_container_scripts.sh diff --git a/ControlScripts/_sync_single_cluster_container_scripts.sh b/ControlScripts/_sync_single_cluster_container_scripts.sh new file mode 100755 index 0000000..fa5fc98 --- /dev/null +++ b/ControlScripts/_sync_single_cluster_container_scripts.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Copyright: George Milescu 2010 - george.milescu@gmail.com +# + +if test $# -ne 2; then + echo "Usage: $0 host port" 1>&2 + exit 1 +fi + +# Read the global configuration variables +source ../ConfigFiles/globalconfig.txt + +host=$1 +port=$2 + +echo "Syncing $host $port" +rsync -avP --del --rsh='ssh -p'$port $P2P_NEXT_REL_PATH/P2P-Testing-Infrastructure/ControlScripts p2p@$host:/home/p2p/george/P2P-Testing-Infrastructure/ > /dev/null +rsync -avP --del --rsh='ssh -p'$port $P2P_NEXT_REL_PATH/P2P-Testing-Infrastructure/ConfigFiles p2p@$host:/home/p2p/george/P2P-Testing-Infrastructure/ > /dev/null -- 2.20.1