innobackupex incremental apply-log copies to wrong directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | |
| 1.6 |
Fix Released
|
High
|
Alexey Kopytov | |
| 2.0 |
Fix Released
|
High
|
Alexey Kopytov | |
| 2.1 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
When running the first --apply-log on my incremental backup, innobackupex copies the files to the wrong directory. My backup is located in /innobackupex/
Related branches
- Laurynas Biveinis (community): Approve on 2012-05-23
-
Diff: 97 lines (+72/-3)2 files modifiedinnobackupex (+4/-3)
test/t/bug1002688.sh (+68/-0)
- Laurynas Biveinis (community): Approve on 2012-05-23
-
Diff: 97 lines (+72/-3)2 files modifiedinnobackupex (+4/-3)
test/t/bug1002688.sh (+68/-0)
- Laurynas Biveinis (community): Approve on 2012-05-23
-
Diff: 97 lines (+72/-3)2 files modifiedinnobackupex (+4/-3)
test/t/bug1002688.sh (+68/-0)
Ryan Flint (pinnaclecomps) wrote : | #1 |
Alexey Kopytov (akopytov) wrote : | #2 |
Verified by changing the bug759701.sh test like this:
--- test/t/bug759701.sh 2011-12-21 16:40:27 +0000
+++ test/t/bug759701.sh 2012-05-22 13:48:07 +0000
@@ -37,7 +37,7 @@
innobackupex --apply-log --redo-only $full_backup_dir
vlog "Log applied to full backup"
-innobackupex --apply-log --redo-only --incremental-
+innobackupex --apply-log --redo-only --incremental-
$full_
vlog "Delta applied to full backup"
So the bug occurs when the path in --incremental-dir ends with a slash.
The workaround is to remove the trailing slash from the --incremental-dir argument.
Shahriyar Rzayev (rzayev-sehriyar) wrote : | #3 |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/
I did a bit of digging through the source code and in the copy_file() function, $copy_dir_src ends with a directory separator while $copy_dir_dst does not have the separator at the end.