Since Percona doesn't provide recent builds of xtrabackup for OS X, I decided to try to build my own. It turned out to be pretty easy once you have all the tools needed.
Things you will need:
Xcode, Command Line Tools, Homebrew
Steps:
1. brew install libgcrypt , you may need to `ln -s 1.13 1.12` under /usr/local/Cellar/libgpg-error if you saw libgpg-error related error during build.
2. Get latest source code of xtrabackup from:
http://www.percona.com/downloads/XtraBackup/LATEST/source/3. tar zxvf percona-xtrabackup-2.1.9.tar.gz and run:
AUTO_DOWNLOAD="yes" ./utils/
build.sh innodb55
If you need other support than InnoDB 5.5, please look into docs here:
http://www.percona.com/doc/percona-xtrabackup/2.1/installation/compiling_xtrabackup.html4. Copy innobackupex / xtrabackup_55 / xbstream from ./ and ./src/ to /usr/local/bin/
You can download my compiled binaries here:
http://static.v2ex.com/xtrabackup/osx/
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/114081
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.