Skip to content
logo
Percona XtraBackup
Use an APT repo to install Percona XtraBackup
Initializing search
    percona/pxb-docs
    percona/pxb-docs
    • Home
      • About Percona XtraBackup
      • How Percona XtraBackup works
      • Understand version numbers
      • Install Percona XtraBackup 8.0
      • Use an APT repo to install Percona XtraBackup
        • Install Percona XtraBackup through percona-release
        • Apt-pin the packages
      • Use a YUM repo to install Percona XtraBackup
      • Use DEB or RPM downloaded packages to install Percona XtraBackup
      • Install Percona XtraBackup from a Binary Tarball
      • Compile and install Percona XtraBackup from source code
      • What’s in the packages
      • Uninstall Percona XtraBackup
      • Run Percona XtraBackup in a Docker container
      • Implementation details
      • Connection and privileges needed
      • Configure xtrabackup
      • Server version and backup version comparison
      • xtrabackup exit codes
      • The backup cycle - full backups
      • Incremental backup
      • Compressed backup
      • Partial backups
      • Percona XtraBackup user manual
      • Throttling backups
      • Encrypted InnoDB tablespace backups
      • Encrypt backups
      • LRU dump backup
      • Point-in-time recovery
      • Restore individual tables
      • Smart memory estimation
      • Work with binary logs
      • Improved log statements
      • Work with SELinux
      • Work with AppArmor
      • Enable the server to communicate via TCP/IP
      • Install and configure an SSH server
      • Analyze table statistics
      • FLUSH TABLES WITH READ LOCK option
      • lock-ddl-per-table option improvements
      • Take an incremental backup using page tracking
      • The xbcloud binary
      • Use the xbcloud binary with Swift
      • Use xbcloud Binary with Amazon S3
      • Xbcloud with an IAM instance profile
      • Use the xbcloud binary with MinIO
      • Use the xbcloud with Google Cloud Storage
      • Exponential backoff
      • Use the xbcloud binary with Microsoft Azure Cloud Storage
      • How-tos and recipes
      • Release notes index
      • Percona XtraBackup 8.0.32-25 (2023-02-27)
      • Percona XtraBackup 8.0.31-24 (2023-02-07)
      • Percona XtraBackup 8.0.30-23 (2022-11-14)
      • Percona XtraBackup 8.0.29-22 (2022-07-19)
      • Percona XtraBackup 8.0.28-21 (2022-05-25)
      • Percona XtraBackup 8.0.28-20
      • Percona XtraBackup 8.0.27-19
      • Percona XtraBackup 8.0.26-18.0
      • Percona XtraBackup 8.0.25-17.0
      • Percona XtraBackup 8.0.23-16.0
      • Percona XtraBackup 8.0.22-15.0
      • Percona XtraBackup 8.0.14
      • Percona XtraBackup 8.0.13
      • Percona XtraBackup 8.0.12
      • Percona XtraBackup 8.0.11
      • Percona XtraBackup 8.0.10
      • Percona XtraBackup 8.0.9
      • Percona XtraBackup 8.0.8
      • Percona XtraBackup 8.0.7
      • Percona XtraBackup 8.0.6
      • Percona XtraBackup 8.0.5
      • Percona XtraBackup 8.0.4
      • Percona XtraBackup 8.0-3-rc1
      • Error Message: Found tables with row versions due to INSTANT ADD/DROP columns
      • The xtrabackup option reference
      • The xbcrypt binary
      • The xbstream binary
      • Frequently asked questions
      • Glossary
      • Index of files created by Percona XtraBackup
      • Trademark policy
      • Copyright and licensing information
      • Version checking

    • Install Percona XtraBackup through percona-release
    • Apt-pin the packages

    Use an APT repo to install Percona XtraBackup¶

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

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

    To check what data each DEB package contains, see What’s in the packages.

    Important

    To prevent intermittent backup failures, update the curl utility in Debian 10.

    Install Percona XtraBackup through 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: 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 only need to enable the tools repository: percona-release enable-only tools.

    4. Remember to update the local cache: apt update

    5. After that you can install the percona-xtrabackup-80 package:

      $ sudo apt install percona-xtrabackup-80
      
    6. To decompress backups made using LZ4 or ZSTD compression algorithm, install the corresponding package:

      $ sudo apt install lz4
      
      $ sudo apt install zstd
      

    Note

    For AppArmor profile information, see Working with AppArmor.

    Apt-pin the packages¶

    In some cases you might need to “pin” the selected packages to avoid the upgrades from the distribution repositories. 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, check the official debian wiki.

    See also

    To install Percona XtraBackup using downloaded deb packages, see Install with package manager.

    To uninstall Percona XtraBackup, see Uninstall Percona XtraBackup

    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.


    Last update: 2023-01-25
    Percona LLC and/or its affiliates, © 2023
    Made with Material for MkDocs

    Cookie consent

    We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.