Merges George changes
[p2p-testing-infrastructure.git] / Utils / sync_single_cluster_container_scripts.sh
1 #!/bin/bash
2 #
3 # Copyright: George Milescu 2010 - george.milescu@gmail.com
4 #
5
6 if test $# -ne 2; then
7         echo "Usage: $0 host port" 1>&2
8         exit 1
9 fi
10
11 # Read the global configuration file
12 # Check if the global configuration file exists
13 if [ ! -e ../ControlScripts/globalconfig ]; then
14         echo "Warning: The global config file ../ControlScripts/globalconfig does not exist."
15 else
16         source ../ControlScripts/globalconfig
17 fi
18
19 host=$1
20 port=$2
21
22 echo "Syncing $host $port"
23 rsync -avzP --del --rsh='ssh -p'$port $P2P_NEXT_REL_PATH/P2P-Testing-Infrastructure/ControlScripts p2p@$host:/home/p2p/george/P2P-Testing-Infrastructure/ > /dev/null
24 rsync -avzP --del --rsh='ssh -p'$port $P2P_NEXT_REL_PATH/P2P-Testing-Infrastructure/TestSpecs p2p@$host:/home/p2p/george/P2P-Testing-Infrastructure/ > /dev/null