Skip to content

Instantly share code, notes, and snippets.

@dariusc93
Created November 11, 2013 04:10
Show Gist options
  • Save dariusc93/7407706 to your computer and use it in GitHub Desktop.
Save dariusc93/7407706 to your computer and use it in GitHub Desktop.
Backup of database example
sync; mysqldump -uroot -pPasswordhere database > /path/to/backup/database-$(date "+%Y.%m.%d-%H").sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment