Skip to content

Instantly share code, notes, and snippets.

@tag-dmasse
Created October 10, 2013 15:29
Show Gist options
  • Save tag-dmasse/6920315 to your computer and use it in GitHub Desktop.
Save tag-dmasse/6920315 to your computer and use it in GitHub Desktop.
Rolling hourly MySQL backups on AWS
0 * * * * mysqldump -u <user> -p<password> <database> | gzip > "/home/ubuntu/backups/database/<database>_`date +\%H`.sql.gz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment