安装percona xtrabackup

环境:centos6

简介:
innobackupex 和xtrabackup

innobackupex is the symlink for xtrabackup. innobackupex still supports all features and syntax as 2.2 version did, 
but is now deprecated and will be removed in next major release.
After Percona XtraBackup 2.3 release the recommend way to take the backup is using the xtrabackup script. 
innobackupex实际上是xtrabackup的软链接,2.3版本开始,percona建议弃用innobackupex进行备份。

ls -l /usr/bin/innobackupex 
lrwxrwxrwx. 1 root root 10 Sep 13 09:41 /usr/bin/innobackupex -> xtrabackup


参考来源:https://www.percona.com/doc/percona-xtrabackup/LATEST/manual.html
------------------------------
安装:
1. Install the Percona repository
$ wget http://www.percona.com/downloads/percona-release/redhat/0.1-6/\
percona-release-0.1-6.noarch.rpm
$ rpm -ivH percona-release-0.1-6.noarch.rpm
此时在目录/etc/yum.repos.d会生成两个文件
percona-release.repo
percona.repo

其中percona-release.repo是percona提供的预览版本的工具库。
可以把这个[percona-testing-$basearch]和[percona-testing-noarch]中的enabled改为1


2. Testing the repository
yum list | grep xtrabackup |grep percona

如果看到类似的输出,就说明可以安装了
percona-xtrabackup-24.x86_64                2.4.12-1.el6                 @percona
percona-xtrabackup.x86_64                   2.3.10-1.el6                 percona
percona-xtrabackup-20.x86_64                2.0.8-587.rhel6              percona
percona-xtrabackup-20-debuginfo.x86_64      2.0.8-587.rhel6              percona
percona-xtrabackup-20-test.x86_64           2.0.8-587.rhel6              percona
percona-xtrabackup-21.x86_64                2.1.9-746.rhel6              percona
percona-xtrabackup-21-debuginfo.x86_64      2.1.9-746.rhel6              percona
percona-xtrabackup-22.x86_64                2.2.13-1.el6                 percona
percona-xtrabackup-22-debuginfo.x86_64      2.2.13-1.el6                 percona
percona-xtrabackup-24-debuginfo.x86_64      2.4.12-1.el6                 percona
percona-xtrabackup-debuginfo.x86_64         2.3.10-1.el6                 percona
percona-xtrabackup-test.x86_64              2.3.10-1.el6                 percona
percona-xtrabackup-test-21.x86_64           2.1.9-746.rhel6              percona
percona-xtrabackup-test-22.x86_64           2.2.13-1.el6                 percona
percona-xtrabackup-test-24.x86_64           2.4.12-1.el6                 percona

3. Install the packages

yum install percona-xtrabackup-24

# rpm -qa |grep -i xtrabackup
percona-xtrabackup-24-2.4.12-1.el6.x86_64

# rpm -ql percona-xtrabackup-24-2.4.12-1.el6.x86_64
/usr/bin/innobackupex
/usr/bin/xbcloud
/usr/bin/xbcloud_osenv
/usr/bin/xbcrypt
/usr/bin/xbstream
/usr/bin/xtrabackup
/usr/lib64/xtrabackup/plugin/keyring_file.so
/usr/lib64/xtrabackup/plugin/keyring_vault.so
/usr/share/doc/percona-xtrabackup-24-2.4.12
/usr/share/doc/percona-xtrabackup-24-2.4.12/COPYING
/usr/share/man/man1/innobackupex.1.gz
/usr/share/man/man1/xbcrypt.1.gz
/usr/share/man/man1/xbstream.1.gz
/usr/share/man/man1/xtrabackup.1.gz

------------------------------
排错:
yum list | grep percona
[Errno 14] problem making ssl connection
解决:
cd /etc/yum.repos.d
mv epel.repo epel.repo.bk
mv percona-release.repo percona-release.repo.bk
mv percona.repo percona.repo.bk
yum install ca-certificates

mv /etc/yum.repos.d/epel.repo.bk /etc/yum.repos.d/epel.repo
mv percona-release.repo.bk percona-release.repo
mv percona.repo.bk percona.repo
然后就可以正常安装了

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wittzhang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值