Build latest xtrabackup on Mac OS X

2014-05-24 18:15:13 +08:00
 Livid
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.html

4. 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/
7901 次点击
所在节点    MySQL
5 条回复
julyclyde
2014-05-24 20:50:13 +08:00
你现在用os x做mysql服务器了?
caonan
2014-05-24 23:09:20 +08:00
@julyclyde V站现在跑在一台垃圾桶里。
Livid
2014-05-25 11:15:02 +08:00
@julyclyde 有的时候,为了试验,把 OS X 上的数据库备份后导入 Vagrant 也会需要这个工具。
lm902
2014-05-25 11:42:19 +08:00
@Livid 为何不直接复制数据
time | cp /path/to/mysql/data/file
julyclyde
2014-05-26 13:36:04 +08:00
@lm902 你那样得关闭数据库服务才能安全复制

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/114081

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX