Use a YUM repository to install Percona XtraBackup¶
Percona XtraBackup Pro includes the capabilities that are typically requested by large enterprises. Percona XtraBackup Pro contains packages created and tested by Percona. These packages are supported only for Percona Customers with a subscription.
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.
Specific information on the supported platforms, products, and versions is described in Percona Software and Platform Lifecycle.
Install Percona XtraBackup from Percona yum
repository¶
To install Percona XtraBackup from Percona yum
repository, do the following steps:
-
Install the Percona yum repository by running the following command as the
root
user or with sudo:$ sudo yum install \ https://repo.percona.com/yum/percona-release-latest.\ noarch.rpm
Expected output
Oracle Linux 9 BaseOS Latest (x86_64) 8.4 MB/s | 43 MB 00:05 Oracle Linux 9 Application Stream Packages (x86 8.6 MB/s | 47 MB 00:05 Last metadata expiration check: 0:00:06 ago on Wed Dec 11 14:12:54 2024. percona-release-latest.noarch.rpm 62 kB/s | 27 kB 00:00 Dependencies resolved. ... For more information, please visit: https://docs.percona.com/percona-software-repositories/percona-release.html Verifying : percona-release-1.0-29.noarch 1/1 Installed: percona-release-1.0-29.noarch Complete!
-
Enable the repository:
$ sudo percona-release enable pxb-84-lts
Expected output
* Enabling the Percona Packaging Repository repository <*> All done!
-
Install Percona XtraBackup.
$ sudo yum install percona-xtrabackup-84
Expected output
PMM2 Client release/x86_64 YUM repository 17 kB/s | 7.1 kB 00:00 Percona Release release/noarch YUM repository 5.3 kB/s | 2.0 kB 00:00 Percona Packaging Repository release/x86_64 YUM 95 kB/s | 52 kB 00:00 Percona Telemetry release/x86_64 YUM repository 4.3 kB/s | 1.7 kB 00:00 Dependencies resolved. ... perl-subs-1.03-481.el9.noarch perl-vars-1.05-481.el9.noarch rsync-3.2.3-20.el9.x86_64 zstd-1.5.1-2.el9.x86_64
-
Verify the installation.
$ xtrabackup --version
Expected output
xtrabackup version 8.4.0-1 based on MySQL server 8.4.0 Linux (x86_64) (revision id: da6e1abd)
-
To decompress backups made using
LZ4
orZSTD
compression algorithm, install the corresponding package:$ sudo yum install lz4
$ sudo yum install zstd
See also
To install Percona XtraBackup using downloaded rpm packages, see Install with package manager.
To uninstall Percona XtraBackup, see Uninstall Percona XtraBackup
Get expert help¶
If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.