Difference between revisions of "CentOS 7.x gitlab update"
From Notes_Wiki
(Created page with "<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 usi...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x DevOps|DevOps]] > [[CentOS 7.x version control|Version Control]] > [[CentOS 7.x gitlab|gitlab]] > [[CentOS 7.x gitlab update]] | |||
To update gitlab use following steps: | To update gitlab use following steps: | ||
Line 40: | Line 39: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x DevOps|DevOps]] > [[CentOS 7.x version control|Version Control]] > [[CentOS 7.x gitlab|gitlab]] > [[CentOS 7.x gitlab update]] |
Latest revision as of 15:23, 28 August 2022
Home > CentOS > CentOS 7.x > DevOps > Version Control > gitlab > 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
Home > CentOS > CentOS 7.x > DevOps > Version Control > gitlab > CentOS 7.x gitlab update