Created
April 5, 2022 14:59
-
-
Save vulieumang/1fa6585fb315cb63b94cb4fd140683e8 to your computer and use it in GitHub Desktop.
Using wordpress cli to auto export db to db.sql file
This file contains hidden or 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
// using for command file | |
cd `dirname $0` | |
wp db export db.sql --allow-root | |
// using command on terminal | |
wp db export db.sql --allow-root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public