Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G git-backup
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • git-backup
  • Repository

Switch branch/tag
  • git-backup
  • contrib
  • gitlab-backup
Find file BlameHistoryPermalink
  • Alain Takoudjou's avatar
    contrib/gitlab-backup: get database configs from gitlab database base models · 9b2d4539
    Alain Takoudjou authored Feb 03, 2026 and Kirill Smelkov's avatar Kirill Smelkov committed Feb 04, 2026
    Backup::Database class does not have config anymore since in gitlab it's now
    possible to configure many databases.
    
    We need now to get config from base_model: https://lab.nexedi.com/nexedi/gitlab-ce/-/blob/v15.11.13-nxd/lib/gitlab/database/each_database.rb#L39
    If more than one databases gitlab can backup and restore them: https://lab.nexedi.com/nexedi/gitlab-ce/-/blob/v15.11.13-nxd/lib/backup/database.rb#L75
    This feature is not supported for now.
    
    For our gitlab, we only use `main` database so base_model count is always 1. This
    patch will raise if there is more than one databases configured because gitlab-backup
    cannot handle it for now.
    
    /reviewed-by @jerome
    /reviewed-on !15
    9b2d4539

Replace gitlab-backup

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7