Provide task to check integrity of backup file and display backup metadata

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

Backups can sometimes fail to be created correctly and result in backup files that cannot be fully restored. Administrators may want to verify the correctness of a backup file after it has been created.

This issue proposes the creation of a new option for the gitlab-backup task to read in a backup file (from local or object storage) and

  • check that there is sufficient space to extract the backup file locally
  • check whether the file is able to be fully extracted
  • output details from backup_information.yml file
  • output sized of backup components (packages, lfs, builds, registry, repositories etc.)
  • optionally include name and size of each repository bundle in backup

Related to:

Edited by 🤖 GitLab Bot 🤖