target-dir no longer relative to current directory

Bug #1611568 reported by Ryan Brothers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.3
Invalid
Undecided
Unassigned
2.4
Fix Released
Medium
Sergei Glushchenko

Bug Description

In 2.4.4, it seems that the --target-dir is no longer relative to the current directory, and instead relative to the --data-dir.

If I'm in the directory /tmp and run:

xtrabackup --backup --datadir=/var/lib/mysql --target-dir=b1

In 2.3.5, the backup is put in /tmp/b1.

In 2.4.4, the backup is put in /var/lib/mysql/b1

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

indeed

xtrabackup --backup --datadir=/var/lib/mysql --target-dir=b1

creates backup in the datadir

here is workaround:

xtrabackup --backup --datadir=/var/lib/mysql --target-dir=./b1

or just use full path

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-760

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.