Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !3767

Merged
Created Apr 28, 2013 by Administrator@rootOwner

Fixes error when creating a backup and public/uploads doesn't exist.

  • Overview 12
  • Commits 1
  • Changes 2

Created by: axilleas

If there is not a public/uploads directory, backup fails with:

Dumping uploads ...
rake aborted!
No such file or directory - /home/git/gitlab/public/uploads

Reported in the forum.

This PR checks if there is a public/uploads directory during backup.

Note: The uploads dir is created during backup even if there is nothing into it. We could get the dir creation inside the if loop, but then we should add another if loop in backup.rake and change the tar command to exclude the uploads dir. Since the dir is empty there is no harm creating it in the first place.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/axilleas/backup-fix