Created
September 24, 2014 13:15
-
-
Save dansku/40146ab4ff831c139cd7 to your computer and use it in GitHub Desktop.
Backup
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
| #!/bin/bash | |
| for database in $(mysql -e "show databases"|awk -F " " '{print $1}'); do | |
| mysqldump $database | gzip -9 > $database.sql.gz | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment