1. Building XtraBackup For Mac OS

Building XtraBackup For Mac OS

First of all, Percona XtraBackup is a free and open source backup tool for MySQL. Percona distributes XtraBackup via package repositories for RedHat and Debian.

Because there are no packages for Mac OS, in this post I will describe how to build XtraBackup for Mac OS.


So, to build and use XtraBackup on Mac OS you need to install some additional packages. For instance, I will use MacPorts to install the dependencies.

Building XtraBackup For Mac OS

Download the source code from https://www.percona.com/downloads/XtraBackup/LATEST/

Untar the archive:

Build the binaries.

XtraBackup comes with a perl script innobackupex that can be found in storage/innobase/xtrabackup/. The script is a wrapper around few binaries that XtraBackup needs to work. They are built in storage/innobase/xtrabackup/src: xbcrypt, xbstream and xtrabackup.

Installing XtraBackup For Mac OS

To install XtraBackup use a Makefile:

It will install XtraBackup in /usr/local/xtrabackup/ . Consequently, the binaries will land in /usr/local/xtrabackup/bin/ therefore make sure it’s in the $PATH.

XtraBackup Package

For your convenience, we built and packaged XtraBackup for Mac OS. The package installs the binaries in /opt/local/bin which should be in your $PATH. I tested XtraBackup on OS X 10.10 Yosemite, for example.

Have a question? Ask the experts!

Previous Post Next Post