Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #32058
Closed (moved) (moved)
Open
Created May 10, 2017 by Royce@Royce

Improve backups and recovery of individual projects

Description

It was only recently I became aware of the poor state of backups and recovery in GitLab. The fact that you can recover if you have a big disaster back to a certain state, but it is very hard to recover an individual project. Only doing a full dump of the database, severely limits individual project recovery. Currently it seems to me that without knowing the database and using SQL, the only way seems to be recover to a test GitLab system then export the project and import it into your production system. Unfortunately the export/import system is only accessible by the web interface for individual projects and only designed for downloading. There is no command line support or API support.

Proposal

Allow exporting and importing of projects to be incorporated into a more complete backup strategy. Export/Import should be supported by rake commands . E.g. rake gitlab:export:create to create exports of all projects into a backup directory.

rake gitlab:import:create project/all, import 1 to all projects

Maybe a better way is to incorporate the creating of the project.json that export creates into the current backups for each project.

Documentation blurb

Used to create a more flexible and rounded backup solution so recovery of individual projects would be easy.

This would work by incorporating exporting and importing into the backup strategy.

Regular exporting of projects to a backup file system would then allow easy recovery of individual projects.

Assignee
Assign to
Time tracking