ControlScripts: add scripts for single cluster container syncing
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tue, 3 Aug 2010 14:45:24 +0000 (17:45 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tue, 3 Aug 2010 14:45:24 +0000 (17:45 +0300)
ControlScripts/_sync_single_cluster_container.sh [new file with mode: 0755]

diff --git a/ControlScripts/_sync_single_cluster_container.sh b/ControlScripts/_sync_single_cluster_container.sh
new file mode 100755 (executable)
index 0000000..a376309
--- /dev/null
@@ -0,0 +1,18 @@
+#!/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 p2p@$host:/home/p2p/george/ > /dev/null