[MDEV-22353] mariabackup does not complain about unknown options Created: 2020-04-23  Updated: 2020-04-30  Resolved: 2020-04-30

Status: Closed
Project: MariaDB Server
Component/s: Backup
Affects Version/s: 10.4.10
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Ulrich Moser (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: mariabackup, option
Environment:

Ubuntu Server 18.04.3 LTS


Issue Links:
Duplicate
is duplicated by MDEV-18215 mariabackup does not report unknown c... Closed

 Description   

When mistyping an option on the mariabackup command line mariabackup does not complain about an unknown option but continues to take the backup.

Examples:
1. Type targetdir= instead of target-dir= --> mariabackup creates a directory xtrabackup_backupfiles in the current working directory and puts the backup there.

2. Type incremental-base-dir= instead of incremental-basedir= --> mariabackup will take a full backup instead

Expected behaviour: mariabackup should throw an error on each unknown option and show the mariabackup --help output and terminate with exit code not equal 0.


Generated at Thu Feb 08 09:14:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.