Skip to content

Instantly share code, notes, and snippets.

@bdombro
Last active December 29, 2015 03:38
Show Gist options
  • Save bdombro/7608614 to your computer and use it in GitHub Desktop.
Save bdombro/7608614 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd /var/www/mcua-dev
mysqldump mcua_civicrm > dumps/prod.mcua_civicrm.dump.sql
cat dumps/prod.mcua_civicrm.dump.sql | mysql mcuadev_civicrm
rsync -rv --delete-after /var/www/mcua/htdocs/sites/all/modules/civicrm/ htdocs/sites/all/modules/civicrm
rsync -rv --delete-after /var/www/mcua/htdocs/sites/default/files/civicrm/ htdocs/sites/default/files/civicrm
chown -R www-data:www-data htdocs
chmod -R 775 htdocs
cd htdocs
drush cc all
cd ..
chown -R www-data:www-data htdocs
chmod -R 775 htdocs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment