Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • infrastructure infrastructure
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • infrastructureinfrastructure
  • Merge requests
  • !429

gitlab-backup: Set GZIP_RSYNCABLE=yes so borg can dedup

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Evangelos Foutras requested to merge gitlab-backup-gzip-rsyncable into master Jun 24, 2021
  • Overview 2
  • Commits 1
  • Pipelines 1
  • Changes 1

gitlab-backup produces gzipped tarballs that cannot be meaningfully deduplicated by borg. This can be mitigated by passing --rsyncable to gzip.

The above is verified by creating two new borg repositories, adding the two most recent gitlab.archlinux.org archives to both, with the difference of re-compressing the tarballs with gzip -1 --rsyncable before adding them to the second repository.

In the first case, the 215.97 GB backup archive gets compressed and deduplicated down to 176.24 GB. With --rsyncable it gets reduced to just 12.79 GB. These numbers are for /srv/gitlab/data/backups only, but the other non-tarballed files get sufficiently deduped already.

Based on the above, I am hoping to see the borg repository for gitlab shrink over time from the current 3 TB to around 600 GB which is more manageable.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gitlab-backup-gzip-rsyncable