Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WP: Server to Local
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 project.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment