3 # Copyright: George Milescu 2010 - george.milescu@gmail.com
5 # The script can be used with one parameter or with no parameters
7 # Read the global configuration file
8 # Check if the global configuration file exists
9 if [ ! -e ../ControlScripts/globalconfig ]; then
10 echo "Warning: The global config file ../ControlScripts/globalconfig does not exist."
12 source ../ControlScripts/globalconfig
17 echo "* to synchronize one remote system: $0 remote-system"
18 echo "* to synchronize all cluster systems: $0"
24 echo "Syncing $remote_system"
25 xterm -e "rsync -avP --del $P2P_NEXT_REL_PATH/ p2p@${remote_system}:/home/ve/george/P2P-Next/" &
29 for host in p2p-next-01.grid.pub.ro p2p-next-02.grid.pub.ro p2p-next-03.grid.pub.ro p2p-next-04.grid.pub.ro p2p-next-05.grid.pub.ro p2p-next-06.grid.pub.ro p2p-next-07.grid.pub.ro p2p-next-08.grid.pub.ro p2p-next-09.grid.pub.ro p2p-next-10.grid.pub.ro; do
30 sync_cluster_host $host