Installing Percona XtraBackup on Red Hat Enterprise Linux and CentOS

Ready-to-use packages are available from the Percona XtraBackup software repositories and the download page. The Percona yum repository supports popular RPM-based operating systems, including the Amazon Linux AMI.

The easiest way to install the Percona Yum repository is to install an RPM that configures yum and installs the Percona GPG key.

Supported Releases:

  • CentOS 6 and RHEL 6 (Current Stable)
  • CentOS 7 and RHEL 7
  • Amazon Linux AMI (works the same as CentOS 6)
  • Amazon Linux 2

Note

Current Stable: We support only the current stable RHEL6/CentOS6 release, because there is no official (i.e. RedHat provided) method to support or download the latest OpenSSL on RHEL/CentOS versions prior to 6.5. Similarly, and also as a result thereof, there is no official Percona way to support the latest Percona XtraBackup builds on RHEL/CentOS versions prior to 6.5. Additionally, many users will need to upgrade to OpenSSL 1.0.1g or later (due to the Heartbleed vulnerability), and this OpenSSL version is not available for download from any official RHEL/CentOS repository for versions 6.4 and prior. For any officially unsupported system, src.rpm packages may be used to rebuild Percona XtraBackup for any environment. Please contact our support service if you require further information on this.

The CentOS repositories should work well with Red Hat Enterprise Linux too, provided that yum is installed on the server.

Supported architectures:

  • x86_64 (also known as amd64)

What’s in each RPM package?

The percona-xtrabackup-80 package contains the latest Percona XtraBackup GA binaries and associated files.

Package Contains
percona-xtrabackup-80-debuginfo The debug symbols for binaries in percona-xtrabackup-80
percona-xtrabackup-test-80 The test suite for Percona XtraBackup
percona-xtrabackup The older version of the Percona XtraBackup

Installing Percona XtraBackup from Percona yum repository

  1. Install the Percona yum repository by running the following command as the root user or with sudo: yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm

Enable the repository: percona-release enable-only tools release

If Percona XtraBackup is intented to be used in combination with the upstream MySQL Server, you only need to enable the tools repository: percona-release enable-only tools.

  1. Install Percona XtraBackup by running: yum install percona-xtrabackup-80

Warning

Make sure that you have the libev package installed before installing Percona XtraBackup.

The libev package is available from the EPEL repositories.

Installing Percona XtraBackup using downloaded rpm packages

Download the packages of the desired series for your architecture from the download page. The following example downloads Percona XtraBackup 8.0.4 release package for CentOS 7:

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

Now you can install Percona XtraBackup by running yum localinstall:

$ yum localinstall percona-xtrabackup-80-8.0.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: yum remove percona-xtrabackup