How to reduce gitlab-rake backup disk space during backup? It use additional 1x disk space
Our Gitlab version is 10.3.3
Our disk is 1T and git data about 200G , when I use gitlab-rake gitlab:backup:create to backup. During backup disk usage up to 600G. After backup it becomes 400G
I don’t want to use the the additional 1x disk space, Is any idea?
Thanks for taking the time to be thorough in your request, it really helps!
The backups doesn’t just include git data, but also stuff like CI/CD job artifacts and container registry images, so your comparison is a bit off.
How long do you save backups? I.e. What is gitlab_rails['backup_keep_time'] set to in gitlab.rb?
If you look at how the backups work, not much can be done about a lot of the usage, but now (since the release of 12.9, so you’ll need to upgrade to use it) there is one thing you can do: you can use SKIP=tar, to skip the creation of the final tarball, that reduces the amount of space used during the backup process. But it also means you can only store one backup on the gitlab server.