Created
January 12, 2018 14:43
-
-
Save DCCoder90/71dd9a61995bddfe0489fbe2dfeebb23 to your computer and use it in GitHub Desktop.
Bash script to backup all databases
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 | |
mysqldump -u root -p[PASSWORD] --all-databases | gzip > /PATH/TO/STORE/BACKUP/mysqldb_`date +%F`.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment