安装 percona-xtrabackup 2.4

Installing Percona XtraBackup from Percona yum repository

  1. Install the Percona repository

    You can install Percona yum repository by running the following command as a root user or with sudo:

    yum install http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm
    

    You should see some output such as the following:

    Retrieving http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm
    Preparing...                ########################################### [100%]
       1:percona-release        ########################################### [100%]
    

Note

RHEL/Centos 5 doesn’t support installing the packages directly from the remote location so you’ll need to download the package first and install it manually with rpm:

$ 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
  1. Testing the repository

    Make sure packages are now available from the repository, by executing the following command:

    yum list | grep percona
    

    You should see output similar to the following:

    ...
    percona-xtrabackup-20.x86_64               2.0.8-587.rhel5             percona-release-x86_64
    percona-xtrabackup-20-debuginfo.x86_64     2.0.8-587.rhel5             percona-release-x86_64
    percona-xtrabackup-20-test.x86_64          2.0.8-587.rhel5             percona-release-x86_64
    percona-xtrabackup-21.x86_64               2.1.9-746.rhel5             percona-release-x86_64
    percona-xtrabackup-21-debuginfo.x86_64     2.1.9-746.rhel5             percona-release-x86_64
    percona-xtrabackup-22.x86_64               2.2.13-1.el5 percona-release-x86_64 percona-xtrabackup-22-debuginfo.x86_64 2.2.13-1.el5 percona-release-x86_64 percona-xtrabackup-debuginfo.x86_64 2.3.5-1.el5 percona-release-x86_64 percona-xtrabackup-test.x86_64 2.3.5-1.el5 percona-release-x86_64 percona-xtrabackup-test-21.x86_64 2.1.9-746.rhel5 percona-release-x86_64 percona-xtrabackup-test-22.x86_64 2.2.13-1.el5 percona-release-x86_64 ... 
  2. Install the packages

    You can now install Percona XtraBackup by running:

    yum install percona-xtrabackup-24
    

Warning

In order to sucessfully install Percona XtraBackup libev package will need to be installed first. libev package can be installed from the EPEL repositories.

Percona yum Testing Repository

Percona offers pre-release builds from our testing repository. To subscribe to the testing repository, you’ll need to enable the testing repository in /etc/yum.repos.d/percona-release.repo. To do so, set both percona-testing-$basearch and percona-testing-noarch to enabled 1 (Note that there are 3 sections in this file: release, testing and experimental - in this case it is the second section that requires updating). NOTE: You’ll need to install the Percona repository first (ref above) if this hasn’t been done already.

Installing Percona XtraBackup using downloaded rpm packages

Download the packages of the desired series for your architecture from the download page. Following example will download Percona XtraBackup 2.4.4 release package for CentOS 7:

$ wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/\
binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm

Now you can install Percona XtraBackup by running:

$ yum localinstall percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm

Note

When installing packages manually like this, you’ll need to make sure to resolve all the dependencies and install missing packages yourself.

Uninstalling Percona XtraBackup

To completely uninstall Percona XtraBackup you’ll need to remove all the installed packages.

Remove the packages

yum remove percona-xtrabackup

查看效果:

[root@weifeng04 ~]# xtrabackup --version
xtrabackup: recognized server arguments: --datadir=/var/lib/mysql
xtrabackup version 2.4.12 based on MySQL server 5.7.19 Linux (x86_64) (revision id: 170eb8c)

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Percona XtraBackup 2.4 是一个用于MySQL和MariaDB数据库备份和恢复的免费开源工具。它是Percona公司开发的一款备份软件,旨在提供高性能、高效率和可靠性的数据库备份和恢复解决方案。 与传统备份工具不同,Percona XtraBackup 2.4 是一个基于增量备份的工具。它可以在不停止数据库服务的情况下完成备份,并且备份速度非常快。它通过读取数据库文件的变化来进行备份,只备份已更改的数据和索引,并将其应用到基础备份中,从而实现增量备份。 Percona XtraBackup 2.4 还具有一些其他有用的功能。首先,它支持并行备份,可以在多个CPU核心上同时进行备份操作,提高备份速度。其次,它支持压缩备份,可以在备份期间对备份文件进行压缩,减小备份文件的大小,从而节省磁盘空间。此外,它还支持备份完整性检查和恢复验证,确保备份的完整性和可恢复性。 使用Percona XtraBackup 2.4 进行备份非常简单。只需安装工具,配置备份参数(例如备份位置和备份频率),并运行备份命令即可完成备份操作。此外,它还提供了一些附加工具和插件,以便于备份的管理和监控。 总之,Percona XtraBackup 2.4 是一个功能强大的数据库备份工具,它提供了高性能、高效率和可靠性的备份和恢复解决方案。无论是个人用户还是企业用户,都可以使用它来保护和恢复其MySQL和MariaDB数据库的数据。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值