[MDEV-15713] mariabackup: throw warning/error if --stream is used without --backup Created: 2018-03-28  Updated: 2020-08-25  Resolved: 2018-04-09

Status: Closed
Project: MariaDB Server
Component/s: Backup
Affects Version/s: 10.2.14
Fix Version/s: 10.1.33, 10.2.15, 10.3.6

Type: Bug Priority: Trivial
Reporter: Geoff Montee (Inactive) Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 1
Labels: mariabackup

Issue Links:
Relates
relates to MDEV-15731 mariabackup: create method for backup... Open

 Description   

Some people seem to think that the --stream option can be used like:

mariabackup --backup --stream=xbstream --user=root > backup.xbstream
cat backup.xbstream | mariabackup --prepare --stream=xbstream

The proper method to use it seems to be more like this:

mariabackup --backup --stream=xbstream --user=root > backup.xbstream
mbstream -x < backup.xbstream
mariabackup --prepare --target-dir=./

Does it ever make sense to use --stream without --backup? If not, then maybe a warning or error should be thrown if users ever try to do so?

At the moment, it seems to silently ignore the option:

$ cat backup.xbstream | mariabackup --prepare --stream=xbstream
mariabackup based on MariaDB server 10.2.14-MariaDB Linux (x86_64)
mariabackup: cd to /home/ec2-user/backup/xtrabackup_backupfiles/
mariabackup: Error: cannot open ./xtrabackup_checkpoints
mariabackup: Error: failed to read metadata from './xtrabackup_checkpoints'


Generated at Thu Feb 08 08:23:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.