Created
October 4, 2013 14:50
-
-
Save joshribakoff/6827222 to your computer and use it in GitHub Desktop.
Split 2 magento stores, in an almost atomic operation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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