xtrabackup doesn't handle shell metacharacters

Bug #665308 reported by Baron Schwartz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Triaged
Wishlist
Unassigned
2.0
Won't Fix
Undecided
Unassigned
2.1
Triaged
Wishlist
Unassigned
2.2
Triaged
Wishlist
Unassigned
2.3
Triaged
Wishlist
Unassigned

Bug Description

This is xtrabackup 1.2:

[baron@ginger 5.1.41]$ xtrabackup --datadir=data --backup --target-dir=~/test-backup
... snip ....
xtrabackup: Error: cannot mkdir 2: ~/test-backup

It should make the backups in my home directory.

Changed in percona-xtrabackup:
assignee: nobody → Valentine Gostev (core-longbow)
Revision history for this message
Valentine Gostev (longbow) wrote :

Baron,

tilde is not replaced with $HOME in C code. It should be done separately. If you need to use such paths, please try innobackupex - it works well there.

Changed in percona-xtrabackup:
status: New → Won't Fix
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Valentine,

It looks like a valid feature request to me. You are right, tilde expansion is performed by the shell. But many programs do that too.

For example:

$ dd if=/dev/zero of=~/tmp_file count=1
1+0 records in
1+0 records out
512 bytes transferred in 0.000056 secs (9138228 bytes/sec)

$ dd if=~/tmp_file of=/dev/null
1+0 records in
1+0 records out
512 bytes transferred in 0.000025 secs (20648881 bytes/sec)

See also "man 3 glob".

Changed in percona-xtrabackup:
importance: Undecided → Wishlist
Changed in percona-xtrabackup:
status: Won't Fix → Confirmed
assignee: Valentine Gostev (core-longbow) → nobody
Stewart Smith (stewart)
Changed in percona-xtrabackup:
status: Confirmed → Triaged
Stewart Smith (stewart)
tags: added: low-hanging-fruit
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-96

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.