MySQL backup prerequisites¶
Before creating MySQL backups, make sure to:
- Check that Backup Management is enabled and the Backup option is available on the side menu. If Backup Managemt has been disabled on your instance, go to Configuration > PMM Settings > Advanced Settings, re-enable Backup Management then click Apply changes.
!!! caution alert alert-warning “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.
-
Check that the PMM Client is installed and running on the node where the backup will be performed.
-
To enable Xtrabackup for MySQL 8.0+, check that pmm-agent connects to MySQL with a user that has BACKUP_ADMIN privilege.
-
Check that there is only one MySQL instance running on the node.
-
Verify that MySQL is running:
-
as a service via
systemd; -
with the name
mysqlormysqld(to confirm, usesystemctl status mysqlorsystemctl status mysqldrespectively); -
from a
mysqlsystem user account.
-
-
Make sure that there is a
mysqlsystem group. -
Check that MySQL is using the
/var/lib/mysqldirectory for database storage. -
Make sure that
pmm-agenthas read/write permissions to the/var/lib/mysqldirectory. -
Check that the latest versions of the following packages are installed and included in the
$PATHenvironment variable:-
xtrabackup, which includes: -
[
qpress][PERCONA_QPRESS].
-
Important
Make sure that the versions of xtrabackup, xbcloud, xbstream, and qpress are fully compatible with the currently installed version of MySQL on the system.