Add backup option to skip specific projects
What does this MR do and why?
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
- Create a backup excluding project or group
bundle exec rake gitlab:backup:create BACKUP=test SKIP_REPOSITORIES_PATHS=giltab-org
- 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.
-
I have evaluated the MR acceptance checklist for this MR.