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

Make Mariabackup handle both --backup and --prepare in a single execution

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • Backup, mariabackup
    • None

    Description

      After taking a full backup with Mariabackup, the backup currently needs to be prepared before it can be restored. e.g.:

      $ mariabackup --backup \
         --target-dir=/var/mariadb/backup/ \
         --user=mariabackup --password=mypassword
      $ mariabackup --prepare \
         --target-dir=/var/mariadb/backup
      $ mariabackup --copy-back \
         --target-dir=/var/mariadb/backup/

      https://mariadb.com/kb/en/library/full-backup-and-restore-with-mariabackup/

      This can be confusing to users who migrate from other databases, where backups do not need to be manually "prepared" before they can be restored.

      Would it be feasible for Mariabackup to prepare the full backup immediately after it has been taken, so that users do not need to manually prepare it?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 5d
                  5d
                  Remaining:
                  Remaining Estimate - 5d
                  5d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Git Integration

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