Mysql 备份工具XtraBackup 安装

开源热备工具XtraBackup下载:[url]https://www.percona.com/downloads/XtraBackup/LATEST/[/url]
源码安装:
安装依赖工具
1.yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf \
bison libtool ncurses-devel libgcrypt-devel libev-devel
编译
2.cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF && make -j4
安装
3.make install
yum 安装:
安装yum repository
1.sudo yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm
2.sudo yum list | grep percona
可以看到:
percona-agent.x86_64 1.0.13-2.el7 percona-release-x86_64
percona-cacti-templates.noarch 1.1.6-1 percona-release-noarch
percona-nagios-plugins.noarch 1.1.6-1 percona-release-noarch
percona-release.noarch 0.1-4 percona-release-noarch
percona-toolkit.noarch 2.2.18-1 percona-release-noarch
percona-xtrabackup.x86_64 2.3.5-1.el7 percona-release-x86_64
percona-xtrabackup-22.x86_64 2.2.13-1.el7 percona-release-x86_64
percona-xtrabackup-22-debuginfo.x86_64 2.2.13-1.el7 percona-release-x86_64
percona-xtrabackup-24.x86_64 2.4.4-1.el7 percona-release-x86_64
percona-xtrabackup-24-debuginfo.x86_64 2.4.4-1.el7 percona-release-x86_64
percona-xtrabackup-debuginfo.x86_64 2.3.5-1.el7 percona-release-x86_64
percona-xtrabackup-test.x86_64 2.3.5-1.el7 percona-release-x86_64
percona-xtrabackup-test-22.x86_64 2.2.13-1.el7 percona-release-x86_64
percona-xtrabackup-test-24.x86_64 2.4.4-1.el7 percona-release-x86_64
percona-zabbix-templates.noarch 1.1.6-1 percona-release-noarch
3.安装
sudo yum install percona-xtrabackup-22.x86_64
查看是否安装成功:
[donald@test percona-xtrabackup-2.0.0]$ ls /usr/bin | grep innobackupex
innobackupex
[donald@test percona-xtrabackup-2.0.0]$ ls /usr/bin | grep xtrabackup
xtrabackup
测试备份:

你可能感兴趣的:(MySQL,Linux)