5

Rsync on Multiple web server

view full story
linux-howto

http://nixcraft.com – Hi, How I rsync all files on my REPO to my 5 server using shell script? Current setup : REPO--> Web 1, Web 2, Web 3, Web 4, Web 5 I have 5 IP's 192.168.0.20, 192.168.0.21, 192.168.0.23, 192.168.0.24, 192.168.0.25 My Current Script. ./SyncNow #!/bin/bash rsync -apz --exclude=files/ --exclude=config.php --progress --rsh='ssh -p1122' /var/www/html/ [email protected]:/var/www/html/ Thanks (HowTos)