Created
April 13, 2015 12:41
-
-
Save ferry77/80b34c208ec4865c6b66 to your computer and use it in GitHub Desktop.
Mysqldump all database to individual 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
mysql -u[uname] -p[password] -e "show databases" | grep -Ev 'Database|information_schema' | while read dbname; do mysqldump -u[uname] -p[password] $dbname > ~/db_backup/$dbname.sql; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment