Installing Percona XtraBackup on Debian and Ubuntu¶
Ready-to-use packages are available from the Percona XtraBackup software repositories and the download page.
- Debian 9 (stretch)
- Debian 10 (buster)
- Ubuntu 16.04 LTS (Xenial Xerus)
- Ubuntu 18.04 LTS (Bionic Beaver)
- Ubuntu 20.04 LTS (Focal Fossa)
- x86_64 (also known as
What’s in each DEB package?¶
percona-xtrabackup-80 package contains the latest Percona XtraBackup
GA binaries and associated files.
percona-xtrabackup-dbg-80 package contains the debug symbols for
percona-xtrabackup-test-80 package contains the test suite for
percona-xtrabackup package contains the older version of the
Installing Percona XtraBackup via
Percona XtraBackup, like many other Percona products, is installed
percona-release package configuration tool.
Download a deb package for
percona-releasethe repository packages from Percona web:
$ wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
Install the downloaded package with dpkg. To do that, run the following commands as root or with sudo:
dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
Once you install this package the Percona repositories should be added. You can check the repository setup in the
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
percona-release enable-only tools.
Remember to update the local cache:
After that you can install the
$ sudo apt-get install percona-xtrabackup-80
In order to make compressed backups, install the
$ sudo apt-get install qpress
Apt-Pinning the packages¶
In some cases you might need to “pin” the selected packages to avoid the
upgrades from the distribution repositories. You’ll need to make a new file
/etc/apt/preferences.d/00percona.pref and add the following lines in
Package: * Pin: release o=Percona Development Team Pin-Priority: 1001
For more information about the pinning you can check the official debian wiki.
Installing Percona XtraBackup using downloaded deb packages¶
Download the packages of the desired series for your architecture from the download page. The following example will download Percona XtraBackup 8.0.4-1 release package for Debian 8.0:
$ wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-8.0.4/binary/debian/stretch/x86_64/percona-xtrabackup-80_8.0.4-1.stretch_amd64.deb
Now you can install Percona XtraBackup by running:
$ sudo dpkg -i percona-xtrabackup-80_0.4-1.stretch_amd64.deb
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 uninstall Percona XtraBackup you’ll need to remove all the installed packages.
Remove the packages
$ sudo apt-get remove percona-xtrabackup-80