Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15713

mariabackup: throw warning/error if --stream is used without --backup

    XMLWordPrintable

Details

    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'
      

      Attachments

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.