Skip to content

Add backup option to skip specific projects

What does this MR do and why?

#18287 (closed)

This MR adds support for SKIP_REPOSITORIES_PATHS environment variable which takes comma separated list of projects or groups and allows to exclude specific projects or groups from repositories backup.

How to set up and validate locally

  1. Create a backup excluding project or group
    bundle exec rake gitlab:backup:create BACKUP=test SKIP_REPOSITORIES_PATHS=giltab-org
  2. Check that excluded projects/groups were not added to backup
    tar -tf tmp/backups/test_gitlab_backup.tar 

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading