Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • heptapod heptapod
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 157
    • Issues 157
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • heptapod
  • heptapodheptapod
  • Issues
  • #321

Closed
Open
Created Jul 29, 2020 by Georges Racinet@gracinet🦑Owner

Backups of Snippets Repositories

In Heptapod, Snippet Repositories work exactly as in upstream. In particular they are Git repositores. I was expecting their backup to work straight away which it did until I added a hard removal of the snippet repositories pre-restoration in the test case (rm -r $REPOSITORIES_ROOT/\@snippets).

Upon further investigation, I couldn't find a single occurence of snippets in upstream backup code (whether from lib/backups/repository.rb or lib/tasks).

Finally I did try on a pristine GitLab 13.1.5-ce.0 container: start it, create a Project Snippet and a Personal Snippet, backup, destroy the whole data volume, start, restore. The results is the same: the snippets get displayed fine, but they don't have repositories (no clone button, actual clone attempt fails, no @snippets on the file system).

I can only conclude that either there's a big piece I didn't grasp or it's simply not done upstream and it should be reported there.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking