Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.