Created
February 10, 2017 00:27
-
-
Save mrkdevelopment/6bab90bcc28705c377ee2d20008443e4 to your computer and use it in GitHub Desktop.
Use this for migrations and downloads of remote WordPress sites.
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
//tar files | |
tar -zcvf backup.tar.gz * |
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
//export DB with WP CLI | |
wp db export --add-drop-table --porcelain --allow-root | |
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
//Extra the tar files | |
tar -zxvf backup.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment