Fixed a bug in sync_cluster_containers. Added sync script for ixlabs
authorGeorge Milescu <george.milescu@gmail.com>
Thu, 26 Aug 2010 15:53:07 +0000 (17:53 +0200)
committerGeorge Milescu <george.milescu@gmail.com>
Thu, 26 Aug 2010 15:53:07 +0000 (17:53 +0200)
Signed-off-by: George Milescu <george.milescu@gmail.com>
Utils/sync_cluster_containers.sh
Utils/sync_ixlabs.cs.pub.ro.sh [new file with mode: 0755]

index 249c3b7..a55b69f 100755 (executable)
@@ -19,7 +19,7 @@ sync_cluster_container() {
        rsync -avP --del --rsh='ssh -p'$port $P2P_NEXT_REL_PATH/P2P-Testing-Infrastructure p2p@$host:/home/p2p/george/ > /dev/null
 }
 
-if [ $# -gt 1 ]; then
+if [ $# -gt 2 ]; then
        echo "Usage:"
        echo "* to synchronize one remote system: $0 remote-system remote-port"
        echo "* to synchronize all cluster containers: $0"
diff --git a/Utils/sync_ixlabs.cs.pub.ro.sh b/Utils/sync_ixlabs.cs.pub.ro.sh
new file mode 100755 (executable)
index 0000000..07a905b
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# Copyright: George Milescu 2010 - george.milescu@gmail.com
+#
+
+# Read the global configuration file
+# Check if the global configuration file exists
+if [ ! -e ../ControlScripts/globalconfig ]; then
+       echo "Warning: The global config file ../ControlScripts/globalconfig does not exist."
+else
+       source ../ControlScripts/globalconfig
+fi
+
+rsync -avP --del $P2P_NEXT_REL_PATH george@ixlabs.cs.pub.ro:/home/george/P2P-Next