码迷,mamicode.com
首页 >  
搜索关键字:xtrabackup、mysql热备、计划任务    ( 1个结果
Xtrabackup结合shell脚本实现MySQL热备
#!/bin/bash #Bymartin.liu Today=`date+%Y%m%d` BackupPath=/usr/local/mysql_backup BackupLog=bak_$Today.log BackupFile=$Today.tar.gz DBUser=root DBPassword=‘123456‘ DBHost=localhost mkdir-p$BackupPath/$Today innobackupex--user=$DBUser--password=$DBPassword-..
分类:数据库   时间:2016-06-07 11:22:12    阅读次数:542
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!