Skip to content

Instantly share code, notes, and snippets.

@DCCoder90
Created January 12, 2018 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DCCoder90/71dd9a61995bddfe0489fbe2dfeebb23 to your computer and use it in GitHub Desktop.
Save DCCoder90/71dd9a61995bddfe0489fbe2dfeebb23 to your computer and use it in GitHub Desktop.
Bash script to backup all databases
#!/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