Skip to content

Instantly share code, notes, and snippets.

@joshribakoff
Created October 4, 2013 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshribakoff/6827222 to your computer and use it in GitHub Desktop.
Save joshribakoff/6827222 to your computer and use it in GitHub Desktop.
Split 2 magento stores, in an almost atomic operation
# Edit your vhosts, and then reload apache immediatly after this script completes.
mysqldump --user=root magento_live > magento_new.sql
rsync -avr path/to/live/ path/to/new
mysql --user=root -e "create database magento_new"
mysql --user=root magento_new < magento_new.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment