CentOS 7.x gitlab update
From Notes_Wiki
<yambe:breadcrumb self="gitlab update">CentOS 7.x gitlab|gitlab</yambe:breadcrumb>
CentOS 7.x gitlab update
To update gitlab use following steps:
- Create a backup copy using:
- sudo gitlab-rake gitlab:backup:create STRATEGY=copy
- Copy /etc/gitlab contents which have secrets using:
- rsync -va /etc/gitlab/ /var/opt/gitlab/backups/YYYY-MM-DD-etc-gitlab/
- Update gitlab using yum:
- sudo yum install -y gitlab-ee
-
- This assumes gitlab-ee was installed, otherwise use gitlab-ce
- Restart gitlab
- sudo gitlab-ctl restart
- (Optional) If things are working fine and you want to upgrade postgreSQL DB from 10.x to 11.x use:
- df -h
- sudo du -sh /var/opt/gitlab/postgresql/data
- sudo gitlab-ctl pg-upgrade -V 11
- If upgrade is successful delete old DB as per output shown
- #sudo rm -rf /var/opt/gitlab/postgresql/data.10
- #sudo rm -f /var/opt/gitlab/postgresql-version.old
Refer:
- https://about.gitlab.com/update/#centos-7
- https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
- https://docs.gitlab.com/omnibus/settings/database.html#upgrade-packaged-postgresql-server
<yambe:breadcrumb self="gitlab update">CentOS 7.x gitlab|gitlab</yambe:breadcrumb>