xtrabackup behaviour is inconsistent when called directly instead of via the innnobackupex symbolic link

Bug #1522459 reported by Dave
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
Fix Released
High
Hrvoje Matijakovic
2.4
Fix Released
High
Hrvoje Matijakovic

Bug Description

Using percona-xtrabackup 2.3.2-1.trusty (from the percona repositories):

/usr/bin/innobackupex is a symbolic link to xtrabackup

The command:
/usr/bin/innobackupex --user=root --socket=/var/run/mysqld/mysqld.sock --compress --stream=xbstream /tmp > /dev/null

Performs a backup and streams it to /dev/null

The command:
/usr/bin/xtrabackup --user=root --socket=/var/run/mysqld/mysqld.sock --compress --stream=xbstream /tmp > /dev/null

Responds:
xtrabackup: Error: unknown argument: '/tmp'

Renaming the xtrabackup binary to innobackupex and running with the same command line causes a backup to be performed and streamed to /dev/null

In the documentation ( https://www.percona.com/doc/percona-xtrabackup/2.3/innobackupex/streaming_backups_innobackupex.html ) it is indicated that the correct form for streaming backups is:
innobackupex --stream=tar /tmp

Also in the documentation ( https://www.percona.com/doc/percona-xtrabackup/2.3/manual.html ) indicated innobackupex is deprecated but that xtrabackup supports all the features/ syntax

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

xtrabackup does support all the features, but the syntax remains the same as it used to be

correct syntax for xtrabackup is:

xtrabackup --user=root --socket=/var/run/mysqld/mysqld.sock --compress --stream=xbstream --backup target-dir=/tmp

We are working to update documentation

tags: added: doc
Revision history for this message
Dave (b-dave-w) wrote :

I've also been unable to find the xtrabackup syntactical equivalent to:

innobackupex --decompress /data/backup/2013-08-01_11-24-04/

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

It should look like

xtrabackup --decompress --target-dir=/data/backup/2013-08-01_11-24-04/

Revision history for this message
Hrvoje Matijakovic (hrvojem) wrote :
Revision history for this message
Hrvoje Matijakovic (hrvojem) 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-447

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.