mariadb: Add the option of postprocessing backups

Authored by jcrespo on Feb 20 2019, 6:12 PM.

Unpublished Commit · Learn More

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


mariadb: Add the option of postprocessing backups

Allow postprocessing of xtrabackup:

  • It runs xtrabackup --prepare
  • It gathers statistics
  • It compresses the output on a final tar, in parallel (requires pigz)

Introduces a new option --only-postprocess, which skips the
actual taking of both dumps and snapshots, but searches for one
matching ongoing backup and does all the backup steps except
the actual mydumper or xtrabackup call. Useful if the data gathering
failed or it was done remotelly (most useful for xtrabackup steams).

Bug: T210292
Change-Id: I6ea9496d2d65dc07256eb524042862264ee1f1e5