I have a repository that has 2 branches with a size of 3.5GB. Each branch is about 1.5GB (the .git is 700MB by itself).
This is the error:
Backup failed
[FAILED]
failed: /opt/gitlab/embedded/bin/git --git-dir=/mountdata/gitlab/git-data/repositories/my-Project/my-git.git bundle create /mountdata/gitlab/backups/repositories/my-Project/my-git.bundle --all
error: pack-objects died of signal 9
error: pack-objects died
Since my server only has 4G of memory, my assumption is that the backup code runs out of memory every time I do back up.
Is there any better way to backup? maybe one branch at a time to prevent running out of memory?
Currently, the command in my cron
job is:
0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1
15 04 * * 1-7 umask 0077; tar cfz /secret/gitlab/backups/$(date "+etc-gitlab-\%s.tgz") -C / etc/gitlab
I think your assumption is right. Possible solutions are
Update gitlab to the lastest version may also help (not sure)