Created
March 8, 2012 03:26
-
-
Save jufemaiz/1998399 to your computer and use it in GitHub Desktop.
Backup of the MySQL Database Shell Script
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
#!/bin/bash | |
# Backup of the MySQL Database | |
mysqldump -u $DATABASE_USER -p $DATABASE_NAME |gzip ->$(date +%Y%m%d%H%M%S)_ftp_db.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will prompt for database password. If being used in anger (aka production), use configuration to manage passwords of database. Also assumes localhost.