1、工具下载
链接: https://pan.baidu.com/s/1prT1ko-tk_mwgS4zIQxwnA?pwd=cbmt 提取码: cbmt
这个版本是:percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm 及依赖文件:libev-4.04-2.el6.x86_64.rpm
如果想要下载其他的版本请去官网下载:官网地址
2、安装依赖
rpm -ivh libev-4.04-2.el6.x86_64.rpm
yum install perl-DBI perl-DBD-MySQL perl-Time-HiRes perl-IO-Socket-SSL -y
3、测试使用
全量备份:
innobackupex --user=root --password=root --socket=/tmp/mysql.sock /backup/complete/
4、其它问题
由于centos官网陆续不在提供支持
配置yum文件 /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-6.10 - Base - vault.centos.org
failovermethod=priority
baseurl=http://mirror.nsc.liu.se/centos-store/6.10/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.nsc.liu.se/centos-store//RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6.10 - Updates - vault.centos.org
failovermethod=priority
baseurl=http://mirror.nsc.liu.se/centos-store//6.10/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.nsc.liu.se/centos-store/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6.10 - Extras - vault.centos.org
failovermethod=priority
baseurl=http://mirror.nsc.liu.se/centos-store/6.10/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.nsc.liu.se/centos-store/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.10 - Plus - vault.centos.org
failovermethod=priority
baseurl=http://mirror.nsc.liu.se/centos-store/6.10/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.nsc.liu.se/centos-store/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6.10 - Contrib - vault.centos.org
failovermethod=priority
baseurl=http://mirror.nsc.liu.se/centos-store/6.10/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.nsc.liu.se/centos-store/RPM-GPG-KEY-CentOS-6
官网查看,是由于之前的网址链接,不再提供服务,替换成新的即可: