innobackupex-1.5.1 --copy-back not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
New
|
Undecided
|
Unassigned |
Bug Description
It seems that --copy-back doesn't work any more.
Version: 1.6.2 for Percona Server 5.5.9 Linux (x86_64) (revision id: 274)
How to reproduce:
Create a backup with innobackupex-1.5.1,
Then try to restore it:
[root@percona2 full]# innobackupex-1.5.1 --copy-back 2011-09-13_15-47-28
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2011. 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-1.5.1
prints "completed OK!".
Can't exec "autodetect": No such file or directory at /usr/bin/
innobackupex-1.5.1: fatal error: no 'mysqld' group in MySQL options
innobackupex-1.5.1: fatal error: OR no 'datadir' option in group 'mysqld' in MySQL options
[root@percona2 full]# cat /etc/my.cnf
[mysqld]
datadir=
I changed the line 218 of innobackupex-1.5.1 like this:
if ($option_copy_back) {
- $option_
+ $option_
} elseif ($option_apply_log) {
From the manual about --ibbackup-binary
[...]
However, when option --copy-back is specified,
[...]
Duplicate of bug #817132.