The following .sh file that runs on a Mac should be converted to a file that runs on Windows 7.
It is a batch file that copies the files from a staging server to the public servers:
---start file---
echo "Really deploy and restart the PUBLIC webservers [y/n]?"
read ans
if [ $ans = y -o $ans = Y -o $ans = yes -o $ans = Yes -o $ans = YES ]
then
for ip in 184-73-234-401 184-73-96-44 174-129-103-841 50-19-195-030
do
echo "-----------------------------------------------------"
echo " Copying staging server to $ip... "
echo "-----------------------------------------------------"
echo
ssh -i [login to view URL] ubuntu@[login to view URL] "sudo rsync -prtv --compress --delete --exclude 'static/tmp-top-10/stats*' --links --stats -e 'ssh -i /home/ubuntu/_login/[login to view URL]' /home/ubuntu/django/sites/[login to view URL] ubuntu@ec2-${ip}.[login to view URL]:/home/ubuntu/django/sites/[login to view URL]"
echo
echo
echo "-----------------------------------------------------"
echo " Restarting Apache on web server $ip... "
echo "-----------------------------------------------------"
echo
ssh -i [login to view URL] ubuntu@ec2-$[login to view URL] 'sudo apache2ctl graceful'
echo
echo
done
echo
echo "-----------------------------------------------------"
echo " Finished deploying. "
echo "-----------------------------------------------------"
echo
echo
fi
---end file---