[MDEV-20058] Make Mariabackup handle both --backup and --prepare in a single execution Created: 2019-07-12  Updated: 2023-11-30

Status: Open
Project: MariaDB Server
Component/s: Backup, mariabackup
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-24722 Feature Request: mariabackup is missi... Open

 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?


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