Rev 3633 | Blame | Last modification | View Log | RSS feed
#!/bin/bash# resolve links - $0 may be a softlinkPRG="$0"while [ -h "$PRG" ]; dols=`ls -ld "$PRG"`link=`expr "$ls" : '.*-> \(.*\)$'`if expr "$link" : '/.*' > /dev/null; thenPRG="$link"elsePRG=`dirname "$PRG"`/"$link"fidone# Get standard environment variablesPRGDIR=`dirname $(readlink -f "$PRG")`PROJECT_DIR="`dirname ${PRGDIR}`"PROD_SERVER="192.168.186.32"echo "Rsyncing generated content from the production server"echo "======================================================="#Update media content on both staging and productionrsync -az --delete ${PROD_SERVER}:/var/lib/tomcat6/webapps/export/media /var/wwwscp ${PROD_SERVER}:/var/lib/tomcat6/webapps/export/javascripts.tgz /var/www/rsync -az --delete ${PROD_SERVER}:/var/lib/tomcat6/webapps/export/documents /var/wwwscp ${PROD_SERVER}:/var/lib/tomcat6/webapps/export/partners.tgz /var/www/scp ${PROD_SERVER}:/catalog-dumps/latest.timestamp /catalog-dumps/echo "Done copying content from the production server"echo "======================================================="${PRGDIR}/update-static-content.sh