xtrabackup defaults to MySQL's datadir as it's target-dir

Bug #489290 reported by Ryan Lowe
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Sergei Glushchenko
1.6
Won't Fix
Medium
Unassigned
2.0
Fix Released
Medium
Sergei Glushchenko

Bug Description

If I invoke xtrabackup as follows:

xtrabackup --backup

(without target-dir)

The target dir becomes the same as datadir (/var/lib/mysql, in this case). This is quite possibly the *WORST* choice for a backup target directory. Now I have a database named xtrabackup_backupfiles. ugh. I think a saner default might be to choose `cwd` as the default when invoked from the shell.

Related branches

Changed in percona-xtrabackup:
milestone: none → release-1.2
assignee: nobody → Aleksandr Kuzminsky (akuzminsky)
Changed in percona-xtrabackup:
milestone: 1.2 → 1.3.1
Changed in percona-xtrabackup:
status: New → Confirmed
assignee: Aleksandr Kuzminsky (akuzminsky) → nobody
importance: Undecided → High
milestone: 1.3.1 → 1.6
assignee: nobody → Vadim Tkachenko (vadim-tk)
Changed in percona-xtrabackup:
assignee: Vadim Tkachenko (vadim-tk) → Sergey Kopytov (sergey-kopytov)
assignee: Sergey Kopytov (sergey-kopytov) → nobody
assignee: nobody → Alexey Kopytov (akopytov)
status: Confirmed → Triaged
Changed in percona-xtrabackup:
milestone: 1.6 → 1.7
Revision history for this message
Stewart Smith (stewart) wrote :

Alexey, what is the status of this bug? Any chance getting to it soon?

Changed in percona-xtrabackup:
importance: High → Medium
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Too much on my plate currently, so no, not any time soon unless the priority is raised.

Revision history for this message
Stewart Smith (stewart) wrote :

no worries - will leave unassigned so we can see if somebody else can get to it.

Changed in percona-xtrabackup:
assignee: Alexey Kopytov (akopytov) → nobody
Stewart Smith (stewart)
Changed in percona-xtrabackup:
milestone: 1.7.0beta1 → 1.7.0
Revision history for this message
Stewart Smith (stewart) wrote :

fix will be to make a target directory a required option.

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-538

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.