innobackupex-1.5.1 --copy-back not working

Bug #849797 reported by Frederic Descamps
12
This bug affects 2 people
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 line 1972.
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=/var/lib/mysql

I changed the line 218 of innobackupex-1.5.1 like this:
if ($option_copy_back) {
- $option_ibbackup_binary = 'xtrabackup_51' if (! $option_ibbackup_binary);
+ $option_ibbackup_binary = 'xtrabackup_51';
} elseif ($option_apply_log) {

From the manual about --ibbackup-binary
[...]
However, when option --copy-back is specified,
        "xtrabackup_51" is the command used.
[...]

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Duplicate of bug #817132.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.