centos下安装mysql备份工具xtrabackup-2.3.2

1.下载安装包括
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.3.2/binary/redhat/6/x86_64/percona-xtrabackup-2.3.2-1.el6.x86_64.rpm

2.下载支持库
yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL

3.下载支持插件
wget ftp://rpmfind.net/linux/atrpms/sl6-x86_64/atrpms/stable/libev-4.04-2.el6.x86_64.rpm

4.安装插件
rpm -ivh libev-4.04-2.el6.x86_64.rpm

5.安装xtrabackup
rpm -ivh percona-xtrabackup-2.3.2-1.el6.x86_64.rpm

6.备份

innobackupex �Cuser=root �Cpassword=’xxx’ �Cstream=tar /opt/backup | gzip > /opt/backup/`date +%F_%H-%M-%S`.tar.gz


你可能感兴趣的:(mysql,Stream,password,下载安装)