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
  • Issues
  • #6536

Closed
Open
Created Mar 14, 2014 by Administrator@rootOwner

Gitlab backup fails to backup all directories

Created by: spuder

If you use the rake:bakup utility, empty repositories are not backed up. If you restore from a backup, then any repos that were empty will not be recreated.

As a result, the empty repo will show in the web interface, but will not be present in /home/git/repositories. The user will get the following error when they try and push to the repo.

git push origin master

fatal: '/home/git/repositories/sowen/foo.git' does not appear to be a git repository
fatal: Could not read from remote repository.

And the directory does not exist

 ls -latr /home/git/repositories/sowen/ | grep foo | wc -l
0

Steps to reproduce:

Create new project in gitlab Backup gitlab Restore gitlab backup to new machine Attempt to push code to the empty repo You will get an error the repository does not exist

Tested on 6-5-stable

Assignee
Assign to
Time tracking