Skip to content

Instantly share code, notes, and snippets.

@watermusic
Created March 25, 2014 07:59
Show Gist options
  • Save watermusic/9757030 to your computer and use it in GitHub Desktop.
Save watermusic/9757030 to your computer and use it in GitHub Desktop.
Backup your Mysql Database with mysqldump
mysqldump -h %host% -u %user% -p --single-transaction --databases %database% > ~/%database%.sql
- single-transaction -> live backup without locking tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment