From: George Milescu Date: Thu, 26 Aug 2010 15:53:07 +0000 (+0200) Subject: Fixed a bug in sync_cluster_containers. Added sync script for ixlabs X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=22d0ce8349b192f49ec6eaf9059cd67b681b6dca;p=p2p-testing-infrastructure.git Fixed a bug in sync_cluster_containers. Added sync script for ixlabs Signed-off-by: George Milescu --- diff --git a/Utils/sync_cluster_containers.sh b/Utils/sync_cluster_containers.sh index 249c3b7..a55b69f 100755 --- a/Utils/sync_cluster_containers.sh +++ b/Utils/sync_cluster_containers.sh @@ -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 index 0000000..07a905b --- /dev/null +++ b/Utils/sync_ixlabs.cs.pub.ro.sh @@ -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