Skip to content

Restore backup correctly when "BACKUP" environment variable is passed

What does this MR do?

This MR fixes a regression introduced by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7188: passing BACKUP variable in the format described in the documentation fails the process. See https://gitlab.com/gitlab-org/gitlab-ce/issues/26090.

Are there points in the code the reviewer needs to double check?

Nobody likes to get an error when restoring a backup and this area of code didn't have a good test coverage. Please read carefully.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/26090

Merge request reports