Skip to content

Instantly share code, notes, and snippets.

@Orlandster
Created December 18, 2018 12:33
Show Gist options
  • Save Orlandster/d7c9ed5c08023660449c7e844dff361b to your computer and use it in GitHub Desktop.
Save Orlandster/d7c9ed5c08023660449c7e844dff361b to your computer and use it in GitHub Desktop.
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 beta.project.ch project.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment