Skip to content
Starting November 2023 Percona XtraBackup 2.4 has reached EOL status. If you have 5.7 databases, we encourage you to upgrade to 8.0 and then install Percona XtraBackup 8.0. Learn more

logo
Percona XtraBackup
Installing Percona XtraBackup on Debian and Ubuntu
Initializing search
    percona/pxb-docs
    percona/pxb-docs
    • Home
      • About Percona XtraBackup
      • How Percona XtraBackup Works
      • Understand version numbers
      • Installing Percona XtraBackup 2.4
      • Installing Percona XtraBackup on Debian and Ubuntu
        • What’s in each DEB package?
        • Installing Percona XtraBackup via percona-release
          • Apt-Pinning the packages
        • Installing Percona XtraBackup using downloaded deb packages
        • Update the Curl utility in Debian 10
        • Uninstalling Percona XtraBackup
      • Installing Percona XtraBackup on Red Hat Enterprise Linux and CentOS
      • Installing Percona XtraBackup from a Binary Tarball
      • Compiling and Installing from Source Code
      • Running Percona XtraBackup in a Docker container
      • Connection and Privileges Needed
      • Configuring xtrabackup
      • The Backup Cycle - Full Backups
      • Incremental Backup
      • Compressed Backup
      • Encrypted Backup
      • Percona XtraBackup User Manual
      • Throttling Backups
      • Lockless binary log information
      • Encrypted InnoDB Tablespace Backups
      • lock-ddl-per-table Option Improvements
      • How-tos and Recipes
        • Release notes index
        • Percona XtraBackup 2.4.29 (2023-12-18)
        • Percona XtraBackup 2.4.28 (2023-04-04)
        • Percona XtraBackup 2.4.27 (2022-12-06)
        • Percona XtraBackup 2.4.26
        • Percona XtraBackup 2.4.25
        • Percona XtraBackup 2.4.24
        • Percona XtraBackup 2.4.23
        • Percona XtraBackup 2.4.22
        • Percona XtraBackup 2.4.21
        • Percona XtraBackup 2.4.20
        • Percona XtraBackup 2.4.19
        • Percona XtraBackup 2.4.18
        • Percona XtraBackup 2.4.17
        • Percona XtraBackup 2.4.16
        • Percona XtraBackup 2.4.15
        • Percona XtraBackup 2.4.14
        • Percona XtraBackup 2.4.13
        • Percona XtraBackup 2.4.12
        • Percona XtraBackup 2.4.11
        • Percona XtraBackup 2.4.10
        • Percona XtraBackup 2.4.9
        • Percona XtraBackup 2.4.8
        • Percona XtraBackup 2.4.7-2
        • Percona XtraBackup 2.4.7
        • Percona XtraBackup 2.4.6
        • Percona XtraBackup 2.4.5
        • Percona XtraBackup 2.4.4
        • Percona XtraBackup 2.4.3
        • Percona XtraBackup 2.4.2
        • Percona XtraBackup 2.4.1
      • The xtrabackup Option Reference
      • The innobackupex Option Reference
      • The xbcloud Binary
      • Exponential Backoff
      • Using the xbcloud binary with Microsoft Azure Cloud Storage
      • The xbcrypt binary
      • The xbstream binary
      • Known issues and limitations
      • Frequently Asked Questions
      • Glossary
      • Index of files created by Percona XtraBackup
      • Trademark policy
      • Copyright and licensing information
      • Version Checking

    • What’s in each DEB package?
    • Installing Percona XtraBackup via percona-release
      • Apt-Pinning the packages
    • Installing Percona XtraBackup using downloaded deb packages
    • Update the Curl utility in Debian 10
    • Uninstalling Percona XtraBackup

    Installing Percona XtraBackup on Debian and Ubuntu¶

    Note

    The following instructions install Percona XtraBackup 2.4 using the APT package manager. The instructions to install Percona XtraBackup 8.0 using the APT package manager are available in the Percona XtraBackup 8.0 installation documentation.

    Ready-to-use packages are available from the Percona XtraBackup software repositories and the Percona download page.

    Specific information on the supported platforms, products, and versions is described in Percona Software and Platform Lifecycle.

    What’s in each DEB package?¶

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

    The percona-xtrabackup-dbg-24 package contains the debug symbols for binaries in percona-xtrabackup-24.

    The percona-xtrabackup-test-24 package contains the test suite for Percona XtraBackup.

    The percona-xtrabackup package contains the older version of the Percona XtraBackup.

    Installing Percona XtraBackup via percona-release¶

    Percona XtraBackup, like many other Percona products, is installed with the percona-release package configuration tool.

    1. Download a deb package for percona-release the repository packages from Percona web:

      $ wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
      
    2. Install the downloaded package with dpkg. To do that, run the following commands as root or with sudo:

      $ 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 /etc/apt/sources.list.d/percona-release.list file.

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

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

    4. After that you can install the percona-xtrabackup-24 package:

      $ sudo apt install percona-xtrabackup-24
      
    5. In order to make compressed backups, install the qpress package:

      $ sudo apt 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 it:

    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. Following example downloads the Percona XtraBackup 2.4.28 release package for Debian 10.0:

    $ wget https://downloads.percona.com/downloads/Percona-XtraBackup-2.4/Percona-XtraBackup-2.4.28/
    \binary/debian/buster/x86_64/percona-xtrabackup-dbg-24_2.4.28-1.buster_amd64.deb
    

    Now you can install Percona XtraBackup by running:

    $ sudo dpkg -i percona-xtrabackup-24_2.4.28-1.buster_amd64.deb
    

    Note

    Installing the packages manually like this, you must resolve all dependencies and install the missing packages yourself.

    Update the Curl utility in Debian 10¶

    The default curl version, 7.64.0, in Debian 10 has known issues when attempting to reuse an already closed connection. This issue directly affects xbcloud and users may see intermittent backup failures.

    For more details, see curl #3750 or curl #3763.

    Follow these steps to upgrade curl to version 7.74.0:

    1. Edit the /etc/apt/sources.list to add the following:

      deb http://ftp.de.debian.org/debian buster-backports main
      
    2. Refresh the apt sources:

      sudo apt update
      
    3. Install the version from buster-backports:

      $ sudo apt install curl/buster-backports
      
    4. Verify the version number:

      $ curl --version
      
      The result is similar to the following;

      curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0
      

    Uninstalling Percona XtraBackup¶

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

    1. Remove the packages

      $ sudo apt remove percona-xtrabackup-24
      

    Contact us

    For free technical help, visit the Percona Community Forum.

    To report bugs or submit feature requests, open a JIRA ticket.

    For paid support and managed or consulting services , contact Percona Sales.

    2024-06-12
    Percona LLC and/or its affiliates, © 2024 Cookie Preferences
    Made with Material for MkDocs