innobackupex-1.5.1 --copy-back fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Unassigned |
Bug Description
Hi,
i'm currently trying to copy back a backup and i get the following error:
innobackupex-1.5.1 --copy-back /mysql/
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy.
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 innobackup
prints "innobackup completed OK!".
innobackupex: Error: Backup data file '/mysql/
-------
stat("/mysql/data", {st_mode=
stat("/", {st_mode=
stat("/mysql/logs", {st_mode=
stat("/
stat("/
write(2, "innobackupex: Error: Backup data"..., 144innobackupex: Error: Backup data file '/mysql/
-------
Backup created with "innobackupex-1.5.1 --prepare" and "innobackupex-1.5.1 --apply-log" (all ended with OK).
my.cnf:
.........
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
/mysql/
# This MySQL options file was generated by innobackup.
# The MySQL server
[mysqld]
datadir=
innodb_
innodb_
innodb_
innodb_
innodb_
Btw. backup-my.cnf: /mysql/data in innodb_
Greets
Mark Davis
Related branches
description: | updated |
Changed in percona-xtrabackup: | |
importance: | Undecided → High |
Changed in percona-xtrabackup: | |
assignee: | nobody → yasufumi-kinoshita |
status: | New → Confirmed |
Changed in percona-xtrabackup: | |
status: | Fix Committed → Fix Released |
For me this seems to work:
------- ------- ------- ------- --- data_file_ path)) {
@@ -605,6 +605,8 @@
# make a list of all ibdata files in the backup directory and all
# directories in the backup directory under which there are ibdata files
foreach my $a (split(/;/, $orig_innodb_
+
+ $a =~ s/^$orig_datadir//;
my $path = (split(/:/,$a))[0];
my $filename = (split(/\/+/, $path))[0];
------- ------- ------- ------- ---
But i don't know, if this is a proper fix or if it breaks other setups.