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

support backup of mariadb using mariabackup #967

Merged
merged 2 commits into from Nov 24, 2021

Conversation

pstorz
Copy link
Member

@pstorz pstorz commented Oct 28, 2021

Thank you for contributing to the Bareos Project!

MariaDB has the tool "mariabackup" which offers the same functionality as percona xtrabackup.
This PR introduces a new filedaemon plugin that can backup mariadb servers via mariabackup.
The plugin is based on the percona-xtrabackup plugin.

Also, this PR adds a systemtests that tests the full backup-restore cycle for mariadb and also adds
this functionality to the percona xtrabackup plugin system tests.

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
    Documentation will be a separate PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing
Tests
  • Decision taken that a system- or unittest is required (if not, then remove this paragraph)
  • The decision towards a systemtest is reasonable compared to a unittest
  • Testname matches exactly what is being tested
  • Output of the test leads quickly to the origin of the fault

@pstorz pstorz marked this pull request as draft October 28, 2021 11:58
@pstorz pstorz force-pushed the dev/pstorz/master/mariabackup branch 2 times, most recently from 2611fd9 to 9b8462c Compare October 29, 2021 16:37
@pstorz pstorz self-assigned this Nov 4, 2021
@pstorz pstorz force-pushed the dev/pstorz/master/mariabackup branch 2 times, most recently from 49494ad to 9a2bbf0 Compare November 5, 2021 14:42
@pstorz pstorz force-pushed the dev/pstorz/master/mariabackup branch 2 times, most recently from 158d8c6 to 7a67f06 Compare November 11, 2021 16:24
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's little code changes that need to be addressed and also a few files that shouldn't be there.

docs/pkglists/Fedora_32.x86_64 Show resolved Hide resolved
docs/pkglists/Fedora_33.x86_64 Show resolved Hide resolved
docs/pkglists/SLE_15.x86_64 Show resolved Hide resolved
docs/pkglists/SLE_15_SP1.x86_64 Show resolved Hide resolved
systemtests/tests/py2plug-fd-mariabackup/testrunner Outdated Show resolved Hide resolved
Copy link
Member Author

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adressed all comments and should be OK now.

debian/bareos-filedaemon-mariabackup-python-plugin.install Outdated Show resolved Hide resolved
debian/bareos-filedaemon-mariabackup-python-plugin.install Outdated Show resolved Hide resolved
docs/pkglists/Fedora_31.x86_64 Show resolved Hide resolved
docs/pkglists/Fedora_33.x86_64 Show resolved Hide resolved
systemtests/tests/py2plug-fd-mariabackup/testrunner Outdated Show resolved Hide resolved
@pstorz pstorz force-pushed the dev/pstorz/master/mariabackup branch 3 times, most recently from 41158a8 to 0c67337 Compare November 24, 2021 11:39
@pstorz pstorz marked this pull request as ready for review November 24, 2021 11:40
@pstorz pstorz force-pushed the dev/pstorz/master/mariabackup branch from e62d35f to bbd4b95 Compare November 24, 2021 12:15
- Update test for mariadb and percona plugin to backup and recover a
  full database with content verification.
- General overhaul and refactoring of testrunners.
- The mariabackup and percona tests can and need to be run as
  unprivileged user.
- Package the mariabackup plugin for deb and rpm.
- Detect required binaries both for mariadb and for mysql/percona.
- Binary specification can be don via commandline which will skip the
  detection. This is currently required to run both mysql/percona and
  mariabackup tests as the binary names are identical.
@pstorz pstorz force-pushed the dev/pstorz/master/mariabackup branch from 2ecb2d3 to f5b039f Compare November 24, 2021 12:17
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is now reviewed and ok.
Need to find a committer.

@pstorz pstorz merged commit 890ec29 into master Nov 24, 2021
@pstorz pstorz deleted the dev/pstorz/master/mariabackup branch November 26, 2021 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants