centos 6.5mysql
1.安裝 percona-xtrabackupsql
yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL數據庫
yum install rsynccentos
percona-xtrabackup 下載app
https://page61.ctfile.com/fs/gfZ167955146ide
rpm -ivh ercona-xtrabackup-2.2.12-1.el6.x86_64.rpm阿里雲
-------------------------------------------------------------------------------------------get
wget http://oss.aliyuncs.com/aliyunecs/rds_backup_extract.sh (阿里雲上的解壓腳本)it
sh rds_backup_extract.sh -f /root/hins1035007_xtra_20160220031920.tar.gz -C /dataio
innobackupex --defaults-file=/data/backup-my.cnf --apply-log /data/
有報錯屏蔽掉 vi /data/backup-my.cnf
#innodb_log_file_size=1572864000
chown -R mysql:mysql /data
-------------------------------------------------------------------------------------------
cp -r /data/carnation /mysql/data/ (把還原的datag下面的對應的庫 考到現有的數據庫data下面)