Skip to main content

Posts

Showing posts with the label mysql

promoting a drupal instance

solution : run my stupid script ;-) issue : At my small company we maintain our own Drupal hosting and content (what a pain).  Anyhow - I suggested that they utilize a "promotion" methodology whereas they do their dev/testing in a DEV/TEST environment, and then I could push the content from one environment to the other. In this case, I have 2 environments, 2 vhosts, 2 databases, 2 etc... test   and    www If you run this script, it generates the command to run to go through the activity. #!/bin/bash # 20120224 - I don't need a script id? TODAY=`date +%Y%m%d` BACKUPDIR=/backups/${TODAY} clear echo "" echo "You need to cut-and-paste the following output into a terminal to complete the promotion" echo "########################################################################################" echo "" echo "mkdir -p ${BACKUPDIR}" # THESE ARE JUST POINTERS TO MAKE IT EASY TO UPDATE WHICH ENVIRONMENT  # ...