Unified Backups: Migrate and refactor repo target
What does this MR do and why?
This merge request updates the GitLab Backup CLI, a command-line tool for backing up and restoring GitLab data. The main changes include:
- Adds support for backing up and restoring repositories using Gitaly.
- Decouples with RepoType from the rails codebase. Introduces a new
RepoTypeclass to represent different types of repositories (e.g., project, wiki, snippet, design). - Updates the
Targetsmodule to include a newGitalyBackupclass for backing up and restoring repositories using Gitaly. - Updates the
Tasksmodule to include a newRepositoriestask for backing up and restoring repositories using Gitaly. - Makes various improvements to the codebase, including adding tests, refactoring, and improving documentation.
Related issue: #481370 (closed)
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.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by Aakriti Gupta