12
返回列表 发新帖
楼主: hwtong

xtrabackup工具的使用

[复制链接]
论坛徽章:
26
ITPUB伯乐
日期:2012-05-22 15:05:35喜羊羊
日期:2015-05-14 12:15:30美羊羊
日期:2015-07-02 22:22:59秀才
日期:2015-08-24 09:51:48天枰座
日期:2015-11-05 16:53:35双鱼座
日期:2015-12-05 19:22:56巨蟹座
日期:2015-12-20 18:46:10摩羯座
日期:2016-05-19 09:54:17ITPUB15周年纪念
日期:2016-10-13 13:15:34秀才
日期:2017-02-22 15:16:26
11#
 楼主| 发表于 2011-12-13 15:39 | 只看该作者
3:完全备份:
xtrabackup.exe --defaults-file=d:\mysql\my.ini --backup --target-dir=d:\mysqlfullbak
增量备份:
xtrabackup.exe --backup --defaults-file=d:\mysql\my.ini --target-dir=d:\mysqldifflbak --incremental-basedir=d:\mysqlfullbak

咋这个增量备份的命令之前都可以运行 现在就运行不了呢.

使用道具 举报

回复
论坛徽章:
26
ITPUB伯乐
日期:2012-05-22 15:05:35喜羊羊
日期:2015-05-14 12:15:30美羊羊
日期:2015-07-02 22:22:59秀才
日期:2015-08-24 09:51:48天枰座
日期:2015-11-05 16:53:35双鱼座
日期:2015-12-05 19:22:56巨蟹座
日期:2015-12-20 18:46:10摩羯座
日期:2016-05-19 09:54:17ITPUB15周年纪念
日期:2016-10-13 13:15:34秀才
日期:2017-02-22 15:16:26
12#
 楼主| 发表于 2011-12-13 15:47 | 只看该作者
hwtong 发表于 2011-12-13 15:39
3:完全备份:
xtrabackup.exe --defaults-file=d:\mysql\my.ini --backup --target-dir=d:\mysqlfullbak
增 ...

看来这个命令中的参数的顺序还有限制 汗.
xtrabackup.exe --defaults-file=d:\mysql\my.ini  --backup  --target-dir=d:\mysqldifflbak --incremental-basedir=d:\mysqlfullbak

这样才行啊

使用道具 举报

回复
招聘 : 其它语言研发
论坛徽章:
7
ITPUB十周年纪念徽章
日期:2011-11-01 16:25:222012新春纪念徽章
日期:2012-01-04 11:55:05ITPUB 11周年纪念徽章
日期:2012-10-09 18:13:33蛋疼蛋
日期:2013-02-18 16:32:512013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:43:09马上有钱
日期:2014-02-18 16:43:09
13#
发表于 2011-12-21 17:23 | 只看该作者
perl  innobackupex-1.5.1 --defaults-file=/home/longxibendi/my.cnf --user=root   --password=root_passwd  --slave-info  /home/longxibendi/backup

使用道具 举报

回复
论坛徽章:
26
ITPUB伯乐
日期:2012-05-22 15:05:35喜羊羊
日期:2015-05-14 12:15:30美羊羊
日期:2015-07-02 22:22:59秀才
日期:2015-08-24 09:51:48天枰座
日期:2015-11-05 16:53:35双鱼座
日期:2015-12-05 19:22:56巨蟹座
日期:2015-12-20 18:46:10摩羯座
日期:2016-05-19 09:54:17ITPUB15周年纪念
日期:2016-10-13 13:15:34秀才
日期:2017-02-22 15:16:26
14#
 楼主| 发表于 2011-12-21 17:43 | 只看该作者
longxibendi 发表于 2011-12-21 17:23
perl  innobackupex-1.5.1 --defaults-file=/home/longxibendi/my.cnf --user=root   --password=root_pass ...

但是innobackup不是不支持增量备份么.

使用道具 举报

回复
招聘 : 其它语言研发
论坛徽章:
7
ITPUB十周年纪念徽章
日期:2011-11-01 16:25:222012新春纪念徽章
日期:2012-01-04 11:55:05ITPUB 11周年纪念徽章
日期:2012-10-09 18:13:33蛋疼蛋
日期:2013-02-18 16:32:512013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:43:09马上有钱
日期:2014-02-18 16:43:09
15#
发表于 2011-12-27 11:57 | 只看该作者
hwtong 发表于 2011-12-21 17:43
但是innobackup不是不支持增量备份么.

支持增量备份,增量备份,只能对innodb的数据增量。myisam的还是全备份,然后覆盖。
直接用xtrabackup 这个二进制文件执行增量备份比较好。

使用道具 举报

回复
论坛徽章:
21
16#
发表于 2012-7-31 16:12 | 只看该作者
hwtong 发表于 2011-12-13 15:47
看来这个命令中的参数的顺序还有限制 汗.
xtrabackup.exe --defaults-file=d:\mysql\my.ini  --backup   ...

The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit.
--no-defaults           Don't read default options from any option file.
--defaults-file=#       Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.
也就是defaults参数放前边。。不过我猜现在你肯定早就懂了,呵呵

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表