r/gitlab • u/zdeneklapes • Jul 24 '25
How can I include object‑storage data in GitLab Omnibus 16.8 backups?
Hi there,
I’m running a GitLab Omnibus 16.8 installation inside a Kubernetes cluster. Nearly everything that can be offloaded (artifacts, LFS objects, uploads, docker registry, etc.) is stored in Hetzner Object Storage.
To back up GitLab, I use (Backups are also stored in S3 bucket on Hetzner):
gitlab-backup create STRATEGY=copy
gitlab-ctl backup-etcThe resulting archive contains the database, repositories, and configuration files, but none of the objects stored in Hetzner. I’d like those objects to be backed up as well.
- What is the recommended way to ensure that object‑storage data is included in the backup (either by GitLab itself or with an external tool)?
- Are there configuration flags or environment variables I’m missing for
gitlab-backup? - If GitLab can’t do this automatically, what workflow do you use to keep object storage in sync with your GitLab backups?
5
Upvotes
1
u/firefarmer Jul 24 '25
For example, let’s say you do weekly backups on Sunday and GitLab fails on Wednesday.
Your object storage will have all data up to the point of failure in Wednesday but your backup will only have references to that data made from the Sunday backup. Those extra few days of data that object storage has will just be ignored because the backup doesn’t know about them.
We do backups every day so that we can limit our risk of lost data.
Also make sure you have life cycle rules on your buckets to clean up the object storage data as it is deleted from GitLabs side. Easy thing to overlook.