Fix backup.rake from trying to tar non-existent directories

What does this MR do?

Fixes #337059 (closed)

Once the feature flag gitaly_backup is enabled it is no longer guaranteed that the repositories directory will be created. Specifically when we are backing up directly to object storage or, as an edge-case, when there are no repositories to backup.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by James Fargher

Merge request reports

Loading