target-dir no longer relative to current directory
Bug #1611568 reported by
Ryan Brothers
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=
In 2.3.5, the backup is put in /tmp/b1.
In 2.4.4, the backup is put in /var/lib/mysql/b1
To post a comment you must log in.
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