Perform nightly backups of our git repository
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
Our git repository contains our source code and source history. There are many ways we could loose information if the wrong git commands are run by accident. We use GitLab features to try and prevent the worse cases (no forced push to default branch), but still, things can happen. GitLab doesn't (yet) have a feature to backup your git repository, so our team should perform backups of the git repository.
Proposal
- Use
git bundle create /tmp/foo-all --allto create bundle archives of the repository - Store the generated bundles compressed to a file repository in the
api-fuzzing-srcproject. - Add a job to the scheduled nightly pipeline to perform a daily backup.
- Investigate if bundle supports differential backups
- Use a standard strategy if so
- example: Full backup 1 once a week, differentials on weekday, keep weekly/daily for 30 days, keep monthly for 6 months
- Use a standard strategy if so
Edited by 🤖 GitLab Bot 🤖