Created
March 6, 2018 09:17
-
-
Save srghma/b6220f7439334bd98f0b3908538f5191 to your computer and use it in GitHub Desktop.
mysql dump
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_NAME= | |
export DB_USER= | |
mysqldump -p -u "$DB_USER" "$DB_NAME" | gzip > "$HOME/$DB_NAME-backup-$(date +%F).sql.gz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment