Comment 3 for bug 357653

Revision history for this message
MarkD (mark-davis-ewetel) wrote :

innobackupex: Copying file '/mysql/backup/2009-04-08_10-24-32/ibdata1'

innobackupex: Starting to copy InnoDB tables and indexes
innobackupex: in '/mysql/backup/2009-04-08_10-24-32'
innobackupex: back to original InnoDB data directory '/'
innobackupex: Copying file '/mysql/backup/2009-04-08_10-24-32//ibdata1'

innobackupex: Starting to copy InnoDB log files
innobackupex: in '/mysql/backup/2009-04-08_10-24-32'
innobackupex: back to original InnoDB log directory '/mysql/logs'
innobackupex: Copying file '/mysql/backup/2009-04-08_10-24-32/ib_logfile1'
innobackupex: Copying file '/mysql/backup/2009-04-08_10-24-32/ib_logfile0'
innobackupex: Finished copying back files.

--------------------------

@@ -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_data_file_path)) {
+
+ $a =~ s/^$orig_datadir//;
         my $path = (split(/:/,$a))[0];
         my $filename = (split(/\/+/, $path))[0];

@@ -671,6 +673,7 @@
     print STDERR "$prefix in '$backup_dir'\n";
     print STDERR "$prefix back to original InnoDB data directory '$orig_ibdata_dir'\n";
     foreach my $a (split(/;/, $orig_innodb_data_file_path)) {
+ $a =~ s/$orig_datadir//;
         # get the relative pathname of a data file
         my $path = (split(/:/,$a))[0];
         print STDERR "$prefix Copying file '$backup_dir/$path'\n";
------------------

Sorry for update-"spam". Are you guys contactable on freenode or something?