MySQL定时备份

mysql backup crontab

sudo apt-get install percona-xtrabackup

systemctl start crond
systemctl enable crond
chmod 755 /root/script/backup_complete.sh
chmod 755 backup_increment.sh
0 4 * * 6 /root/script/backup_complete.sh
0 2 * * 2,4,7 /root/script/backup_increment.sh
10 0 * * * /root/bin/innobackup.sh