环境: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
然后就可以正常安装了