Signed-off-by: George Milescu <george.milescu@gmail.com>
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"
--- /dev/null
+#!/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