HomePhabricator

transfer.py: Add the ability to transfer from a new mariabackup
c0af3848f0abUnpublished

Authored by jcrespo on Jan 24 2019, 10:27 AM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

transfer.py: Add the ability to transfer from a new mariabackup

New options, --type= { file | xtrabackup } is implemented. File is
the old behaviour (copy a file or sync a directory). xtrabackup
uses mariabackup to start a hot* backup process and send it
remotelly to the target host. In the case the xtrabackup
option is used, the source path should point to the socket of the
source database.

Some extra changes were required to implement this- socket
identification, new commands (mariabackup does not support tar,
it has to use xbstream) and new checks.

Some code has been refactored slighly to prevent code duplication.

Bug: T210292
Change-Id: I72d09877d9c527106c338056751360e54aa16bbc