Problem to solve
Accidental deletion of branches or repositories from a Gitlab, and (accidental) force pushes deleting part of the history, or pushing an entirely different repository, is always a risk (I have already seen instances of all of these in my own professional context), even when rights have been properly distributed.
I’ve been looking to see if there is a backup and recovery strategy for repository source content in the SaaS service itself for a while. There seems to be some backing up going on, but as far as I can see, only for disaster management when there is an error on the Gitlab side.
Currently we are making bare repository mirrors, and I I know there are tools such as gitbackup and gickup, to set this up a little bit easier, especially with cron jobs.
However, (not to be bitter, but just to understand) I can’t imagine every sensible Gitlab user is home-brewing this solution, and this is not offered by Gitlab themselves, especially for the payed options.
Is there any such backup and recovery option that I’m greatly overlooking, or is there otherwise a sound reasoning why this service is not being provided by Gitlab?
And lastly, does anyone know if such a SaaS backup and recovery feature request already exists? I couldn’t find it on the Gitlab issue board.
Granted, there is a (one month) delayed deletion of repositories, with owners being notified by e-mail, which is probably enough to protect from accidental deletions. As far as I know this has however not been implemented for branches, and also won’t guard from force pushes.
Thanks a lot for shedding light on any of the questions!
Versions
- Self-managed
GitLab.comSaaS premium- Dedicated
Helpful resources
I know it is basically the same question as the post 9548 repository-backup-in-saas-offerings, that topic is however very old, less complete, and was never answered.