UB: Refactor backup restore process and extract backup verification
requested to merge jtapiab-428505-unified-backups-add-support-for-restoring-from-a-simple-backup into master
What does this MR do and why?
- Moves the
unpack
logic to a dedicated restore class:Backup::Restore::Unpack
. - Creates
Backup::Restore::Preconditions
to handle restore prerequisites defined in https://docs.gitlab.com/ee/administration/backup_restore/restore_gitlab.html#restore-prerequisites.
This includes partial implementation to the standalone backup verification command: !149601 (merged)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
Regular backup and restore process
- Create a backup. i.e
bundle exec rake gitlab:backup:create SKIP=db
- Restore the backup. i.e
bundle exec rake gitlab:backup:restore BACKUP=1708561114_2024_02_22_16.10.0-pre
- The backup and restore tasks should work as expected.
Part of #428505 (closed)
Closes #456785 (closed) Closes #456784 (closed)
Edited by Gabriel Mazetto