Created
December 18, 2018 12:33
-
-
Save Orlandster/d7c9ed5c08023660449c7e844dff361b to your computer and use it in GitHub Desktop.
WP: Server to Local
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
ssh {{server}} | |
cd {{folder}} | |
wp db export export.sql | |
tar -czf db.tar.gz export.sql | |
rsync -i -avz {{server}}/{{folder}}/db.tar.gz ./ | |
tar -xzf db.tar.gz | |
// if flywheel -> start ssh shell from UI | |
wp db import export.sql | |
wp search-replace beta.project.ch project.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment