> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-monitoring-and-management/3/llms.txt).

# MySQL backup prerequisites

Deprecated

This feature is deprecated and will be replaced by [MySQL Backups](https://docs.percona.com/percona-monitoring-and-management/3/apps/mysql-backup.md) under **Apps > MySQL Backups** when [PMM Extensions](https://docs.percona.com/percona-monitoring-and-management/3/apps/index.md) reaches GA. Both options are currently in Tech Preview and run alongside each other. Backups created in one are not visible in the other.

Before creating MySQL backups:

1. Enable **Backup Management** and confirm the **Backup** option is available on the side menu. If **Backup Management** is disabled, go to **Configuration > Settings > Advanced settings**, enable **Backup Management**, and click **Apply changes**.

   Important

   If PMM Server runs as a Docker container, enable backup features at container creation time by adding `-e ENABLE_BACKUP_MANAGEMENT=1` to your `docker run` command.

1. Install and run the [PMM Client](https://docs.percona.com/percona-monitoring-and-management/3/install-pmm/install-pmm-client/index.md) on the node.

1. To enable XtraBackup for MySQL 8.0+, connect `pmm-agent` to MySQL using a user with the `BACKUP_ADMIN` privilege.

1. Run only one MySQL instance on the node.

1. Verify that MySQL is running:

   - as a service via `systemd`
   - with the name `mysql` or `mysqld` (run `systemctl status mysql` or `systemctl status mysqld` to confirm)
   - from a `mysql` system user account

1. Verify that a `mysql` system group exists.

1. Verify that MySQL uses `/var/lib/mysql` for database storage.

1. Grant `pmm-agent` read/write permissions to `/var/lib/mysql`.

1. Install the latest versions of the following packages and add them to `$PATH`. For XtraBackup version requirements, see [XtraBackup and MySQL version compatibility](#xtrabackup-and-mysql-version-compatibility):

   - [`xtrabackup`](https://docs.percona.com/percona-xtrabackup/) (includes [`xbcloud`](https://www.percona.com/doc/percona-xtrabackup/2.3/xbcloud/xbcloud.html) and [`xbstream`](https://www.percona.com/doc/percona-xtrabackup/2.3/xbstream/xbstream.html))
   - \[`qpress`\][PERCONA_QPRESS]

## XtraBackup and MySQL version compatibility

When installing `xtrabackup`, use a version of [Percona XtraBackup (PXB)](https://docs.percona.com/percona-xtrabackup/) that matches your MySQL version:

- MySQL 5.5, 5.6, 5.7 — PXB 2.4.x
- MySQL 8.0.0–8.0.33 — PXB 8.0.x (same version or newer)
- MySQL 8.0.34+ — PXB 8.0.34+
- MySQL 8.1.x, 8.2.x, 8.3.x — matching PXB version (supports only the matching MySQL Innovation release)
- MySQL 8.4.x — any PXB 8.4.x release (supports MySQL 8.4 LTS, including future patch releases; does not support MySQL 8.0 or 9.x)
- MySQL 8.5.x and later Innovation releases, including MySQL 9.7.x — a PXB release from the same major and minor series, for example PXB 9.7.x for MySQL 9.7.x. Each series supports only its matching MySQL release: [PXB 9.7](https://docs.percona.com/percona-xtrabackup/9.7/) does not support MySQL 8.0 or 8.4
