项目作者: Sopsy
项目描述 :
Backup script for MySQL databases
高级语言: Shell
项目地址: git://github.com/Sopsy/mysql-backup.git
mysql-backup.sh
Backup script for MySQL databases. Mainly designed for InnoDB.
Installation
- Create a local user for backups
- Create a database user for backups, give the following permissions: SELECT, LOCK TABLES, SHOW VIEW, PROCESS, TRIGGER, EVENT
- Run mysql_config_editor to create .mylogin.cnf so the script does not request login details
- chmod u+x mysql-backup.sh
- ./mysql-backup.sh, verify output and backups in the same folder
- Add to crontab or as a pre-command in your backup system (e.g. backuppc has pre-cmd)
Known issues
None (tested only with <100GB databases)