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:
<yambe:breadcrumb self="gitlab update">CentOS 7.x gitlab|gitlab</yambe:breadcrumb>
[[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]]
=CentOS 7.x gitlab update=


To update gitlab use following steps:
To update gitlab use following steps:
Line 40: Line 39:




<yambe:breadcrumb self="gitlab update">CentOS 7.x gitlab|gitlab</yambe:breadcrumb>
[[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:

  1. Create a backup copy using:
    sudo gitlab-rake gitlab:backup:create STRATEGY=copy
  2. Copy /etc/gitlab contents which have secrets using:
    rsync -va /etc/gitlab/ /var/opt/gitlab/backups/YYYY-MM-DD-etc-gitlab/
  3. Update gitlab using yum:
    sudo yum install -y gitlab-ee
    This assumes gitlab-ee was installed, otherwise use gitlab-ce
  4. Restart gitlab
    sudo gitlab-ctl restart
  5. (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
  6. 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:



Home > CentOS > CentOS 7.x > DevOps > Version Control > gitlab > CentOS 7.x gitlab update