Created
May 29, 2013 13:53
-
-
Save mgirouard/5670408 to your computer and use it in GitHub Desktop.
An easy way of updating a local WordPress site from a production instance.
This file contains hidden or 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
cd /path/to/Example | |
scp [email protected]:production.sql | |
mysql -u root dev_example < production.sql | |
mysql -u root dev_example <<< 'UPDATE wp_options SET option_value = "http://example.local" WHERE option_name IN ("home","siteurl")' | |
rm production.sql | |
scp [email protected]:uploads.tgz . | |
tar -xvzf uploads.tgz | |
rm uploads.tgz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment