Skip to content

Adjust hint for backup path volume mount point

Alex Povel requested to merge (removed):patch-10 into master

What does this MR do?

Just a more precise hint as to where exactly a Docker volume would have to point in order for backups to persist.

As per the docs, the GitLab data directory at /var/opt/gitlab gets a Docker volume.

However, for backups to persist, it would only be required to have a mount at /var/opt/gitlab/backups (so just the default of gitlab-backup [create|restore]. In fact, we can mount both, see here and here. For some, this might be a desired setup. For example, I have /var/opt/gitlab in a named Docker volume on a local SSD, whereas /var/opt/gitlab/backups is, through Docker-Compose, mounted as an external NFS share. This affords us good separation of concerns and is very easily implemented.

Technically, you can omit backing /var/opt/gitlab with a volume and only have /var/opt/gitlab/backups as a volume (would still persist backups at least), but that makes little sense.

Related issues

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion

Required

  • Merge Request Title, and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com
  • Pipeline is green on dev.gitlab.org if the change is touching anything besides documentation or internal cookbooks
  • trigger-package has a green pipeline running against latest commit

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Tests added
  • Integration tests added to GitLab QA
  • Equivalent MR/issue for the GitLab Chart opened
Edited by Hossein Pursultani

Merge request reports

Loading