Delete backups/tmp after restore

Merged Shubham Kumar requested to merge imskr/gitlab:skr-tmp-delete into master

What does this MR do?

How to setup and validate locally (strongly suggested)

  1. Run
    bundle exec rake gitlab:backup:restore
  2. After restore you'll see tmp dir still present inside tmp/backups/

Screenshot_20210805_183313

  1. After the fix:

Screenshot_20210808_220632

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 Shubham Kumar