innobackupex may fail when an option with optional arguments has no value
Bug #1297647 reported by
Alexey Kopytov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Triaged
|
Low
|
Unassigned | ||
2.1 |
Triaged
|
Low
|
Unassigned | ||
2.2 |
Triaged
|
Low
|
Unassigned | ||
2.3 |
Triaged
|
Low
|
Unassigned |
Bug Description
innobackupex --history /tmp/
innobackupex: Error: You must specify the backup directory.
Or:
innobackupex --password /tmp/
innobackupex: Error: You must specify the backup directory.
The problem is that Getopt::Long allows both "--option=value" and "--option value". So in the above cases "/tmp/" is parsed as a value for the corresponding options.
Not sure if there's a way to fix that. The workaround is to not put such options right before the directory name. I.e. the following works as expected:
innobackupex /tmp --password
innobackupex --password --stream=tar /tmp
summary: |
- innobackupex does not accept an empty argument to --history + innobackupex may fail when an option with optional arguments has no + value |
description: | updated |
description: | updated |
To post a comment you must log in.
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXB-910