GitLab deletes all of the repositories in a server while doing a backup if the backup directory is equal to the data directory.
Summary
GitLab deletes all repositories under the backup directory, which is not properly documented.
Steps to reproduce
Set backup directory to data directory and create a backup.
Expected behavior
Warns the user that GitLab will delete everything under the backup/repositories folder.
Actual behavior
Deletes everything recursiverly with FileUtils.rm_rf
Relevant logs and/or screenshots
Results of GitLab application Check
There are no more repositories.
Possible fixes
Warn if there is something under the backup/repositories folder.