Use a YUM repository to install Percona XtraBackup¶
Ready-to-use packages are available from the Percona XtraBackup software
repositories and the Percona Software Downloads . The Percona yum repository supports popular RPM-based operating systems, including the Amazon Linux AMI.
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
rootuser or with sudo:sudo yum install \ https://repo.percona.com/yum/percona-release-latest.\ noarch.rpmExpected 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-ltsExpected output
* Enabling the Percona Packaging Repository repository <*> All done! -
Install Percona XtraBackup.
sudo yum install percona-xtrabackup-84Expected 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 --versionExpected 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
LZ4orZSTDcompression algorithm, install the corresponding package:sudo yum install lz4sudo 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