下载并安装XtraBackup官方源
wget https://repo.percona.com/yum/percona-release-latest.noarch.rpm
yum localinstall -y percona-release-latest.noarch.rpm
使用清华源替换官方源
cp /etc/yum.repos.d/percona-original-release.repo /etc/yum.repos.d/percona-original-release.repo.bak
cp /etc/yum.repos.d/percona-prel-release.repo /etc/yum.repos.d/percona-prel-release.repo.bak
sed -i 's#http://repo.percona.com/#https://mirrors.tuna.tsinghua.edu.cn/#g' /etc/yum.repos.d/percona-original-release.repo
sed -i 's#http://repo.percona.com/#https://mirrors.tuna.tsinghua.edu.cn/percona/#g' /etc/yum.repos.d/percona-prel-release.repo
yum makecache
安装XtraBackup 2.4
yum install -y percona-xtrabackup-24
验证
[ root@centos7 ~]
xtrabackup: recognized server arguments: --datadir = /var/lib/mysql
xtrabackup version 2.4 .24 based on MySQL server 5.7 .35 Linux ( x86_64) ( revision id: b4ee263)