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
  • !2237

Closed
Created Dec 10, 2012 by Administrator@rootOwner
  • Report abuse
Report abuse

Add a warning to the task.

  • Overview 2
  • Commits 1
  • Changes 1

Created by: maxlazio

There are couple of problems with the current backup.rake task.

  • Backing up of the repositories doesn't take all files from the repository. If you try to restore repositories from the backup couple of files will be missing which will prevent a user from using the repository. For example, gl-conf is not backed up and after the project is restored from backup and git push attempted error
split conf set, gl-conf not present for REPO

will halt the attempted push. One solution is to backup the whole git/repositories directory by copying the whole directory.

  • Attachments are not backed up. If there is a discussion in an issue that contains comments with attached files, after restore those attachments would be lost. This is a problem because it can harm the workflow established in the issue.
  • Gitlab user ssh key is not backed up. After the backup is restored everyone who pushed to the repository would get a warning/failure about the host key change that would prevent them from pushing. Even though this problem is solved by removing the host from known_hosts on clients machine it can still be a problem in larger organizations.

These are the problems that I've encountered while restoring the backup. I wanted to expand the task to resolve the problems described( https://github.com/dosire/gitlabhq/compare/master...backup_keys_and_uploads ) however, more problems kept showing up so I've decided against it for now. I do feel that a disclaimer of some sort needs to be added to the task. Something that would warn users that this rake task is not a complete backup solution and that they need to consider backing up other files as well.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/dosire/expand_backup_tasks