Skip to content

Instantly share code, notes, and snippets.

@jlengstorf
Last active October 13, 2015 01:58
Show Gist options
  • Save jlengstorf/4121599 to your computer and use it in GitHub Desktop.
Save jlengstorf/4121599 to your computer and use it in GitHub Desktop.
One-liner to dump a database and update the URL from the command line
mysqldump -udb_user -p db_name | sed -e 's/olddomain.com/newdomain.com/g' > db_dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment