Skip to content

Instantly share code, notes, and snippets.

@JSpiner
Created April 18, 2017 07:22
Show Gist options
  • Save JSpiner/7a4074071662829ffe917fc2f83225ca to your computer and use it in GitHub Desktop.
Save JSpiner/7a4074071662829ffe917fc2f83225ca to your computer and use it in GitHub Desktop.
db backup script
#db dump script
#ex) mysqldump -uroopt -p1234 db > "dbbackup_$(date '+%Y-%m-%d').sql"
#result : dbbackup_2017-04-18.sql
mysqldump -uID -pPW DBNAME > "dbbackup_$(date '+%Y-%m-%d').sql"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment