[root@xxxxxxopt]# /usr/bin/innobackupex-1.5.1 –-apply-log /opt/back_data/ --defaults-file=/opt/mysql/product/mysql/etc/my.cnf
innobackupex-1.5.1: Too many command line arguments
还没有找到问题所在, 去官网 http://www.percona.com/doc/percona-xtrabackup/howtos/recipes_ibkx_local.html 看到如此例子:
$ innobackupex --use-memory=4G --apply-log /data/backups/2010-03-13_02-42-44/
我加了一个--use-memory=4G 参数 ,就OK了:
[root@xxxxxxopt]# innobackupex --use-memory=4G --apply-log /opt/back_data/ --defaults-file=/opt/mysql/product/mysql/etc/my.cnf
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2012. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
IMPORTANT: Please check that the apply-log run completes successfully.
At the end of a successful apply-log run innobackupex
prints "completed OK!".
130407 14:45:07 innobackupex: Starting ibbackup with command: xtrabackup --defaults-file="/opt/mysql/product/mysql/etc/my.cnf" --prepare --target-dir=/opt/back_data --use-memory=4G
....................................................... 省略N多吧!
[notice (again)]
If you use binary log and don't use any hack of group commit,
the binary log position seems to be:
InnoDB: Last MySQL binlog file position 0 55881164, file name /mysqldata/data/mysql-bin.004217
xtrabackup: starting shutdown with innodb_fast_shutdown = 1
130407 14:45:29 InnoDB: Starting shutdown...
130407 14:45:29 InnoDB: Shutdown completed; log sequence number 247276497420
130407 14:45:29 innobackupex: completed OK!
[root@xxxxx mysqldata]# innobackupex --copy-back /opt/back_data --defaults-file=/opt/mysql/product/mysql/etc/my.cnf
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2012. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
IMPORTANT: Please check that the copy-back run completes successfully.
At the end of a successful copy-back run innobackupex
prints "completed OK!".
Original InnoDB log directory is not empty! at /usr/bin/innobackupex line 568.