CentOS 7.x gitlab update

From Notes_Wiki
Revision as of 15:23, 28 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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