Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup History: save to remote server for backup in RO replica #1549

Open
wants to merge 1 commit into
base: 8.0
Choose a base branch
from

Conversation

fmbiete
Copy link

@fmbiete fmbiete commented Apr 11, 2024

Using the --history option registers the backup metadata in the local database.

When using replication (classic, ReplicaSet, Cluster...), the replica is in RO (or SRO). If we want to execute the backups in a replica (to reduce impact in primary) and save the backup metadata we run into issues. This create an errant gtid (replica in RO) or fails (replica in SRO).

This adds the option to save the backup metadata in a remote server. In the case of a replication setup, we would run xtrabackup in the replica, but save the backup metadata in the primary.

New xtrabackup options

  • history-host: (string) the name of the MySQL server where we will save the backup metadata. Default to host
  • history-port: (uint) the port of the MySQL server where we will save the backup metadata. Default to port
  • history-user: (string) the name of the MySQL user that we will use to save the backup metadata. Default to user
  • history-password: (string) the password for the MySQL user that we will use to save the backup metadata

@it-percona-cla
Copy link

it-percona-cla commented Apr 11, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants