Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created October 22, 2014 21:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save billerickson/3e8a772ff07b6a94ca4e to your computer and use it in GitHub Desktop.
// 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