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?
-
Changelog entry added -
Documentation created/updated [ ] API support added- Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together