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
// This updates the URLs so the DB will have the live site's URL, for migration | |
wp search-replace http://dev-site.com http://live-site.com | |
// This dumps the db in wp-content | |
wp db export wp-content/database.sql | |
// This compresses wp-content into a tarball, and excludes mu-plugins which contains server-specific plugins | |
tar pvczf wp-content.tar.gz wp-content --exclude=wp-content/mu-plugins | |
// I then download wp-content.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment