Skip to content

Instantly share code, notes, and snippets.

@sublimecoder
Created April 22, 2014 18:20
Show Gist options
  • Save sublimecoder/11189243 to your computer and use it in GitHub Desktop.
Save sublimecoder/11189243 to your computer and use it in GitHub Desktop.
Quick Mysql Backup cronjob
#!/bin/sh
DAY=`/bin/date +%Y%m%d`
mysqldump -h localhost -u root -p<password> --all-databases > /home/administrator/mysqlbackups/mysql.yourdomain.$DAY.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment