1、安装需要的包
yum -y install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr bison libtool zlib-devel libgcrypt-devel libcurl-devel crypt* libgcrypt* \
python-sphinx openssl imake libxml2-devel expat-devel ncurses5-devel ncurses-devle vim-common libgpg-error-devel libidn-devel
解压并安装libev-4.24.tar
2、下载XtraBackup源码包percona-xtrabackup-2.4.8.tar.gz
tar zxvf percona-xtrabackup-2.4.8.tar.gz
cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost && make -j4
make
make install
3、工具介绍
默认安装路径/usr/local/
cd /usr/local/xtrabackup/bin
[root@MySQL bin]# ll
total 220864
lrwxrwxrwx 1 root root 10 Sep 20 17:22 innobackupex -> xtrabackup
-rwxr-xr-x 1 root root 5075313 Sep 20 16:50 xbcloud
-rwxr-xr-x 1 root root 3020 Sep 20 16:47 xbcloud_osenv
-rwxr-xr-x 1 root root 4918062 Sep 20 16:50 xbcrypt
-rwxr-xr-x 1 root root 5022744 Sep 20 16:50 xbstream
-rwxr-xr-x 1 root root 211133874 Sep 20 17:21 xtrabackup
innobackupex :是要使用的备份工具
xtrabackup:被封装在innobackupex 中,innobackupex 运行时需要调用它
网站栏目:XtraBackup的安装与介绍
网站路径:
http://cqcxhl.com/article/jhjsjp.html