Difference between revisions of "Migration of Gerrit Server Old to New"

From ppwiki
Jump to navigation Jump to search
Line 9: Line 9:
  
 
==Environment==
 
==Environment==
 +
 
===Old gerrit===
 
===Old gerrit===
 +
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 21: Line 23:
 
|2.13
 
|2.13
 
|-
 
|-
 +
===New gerrit===
  
 
==STEP 1 On old gerrit node==
 
==STEP 1 On old gerrit node==
 +
 
===Stop gerrit===
 
===Stop gerrit===
 +
 
===Backup gerrit database===
 
===Backup gerrit database===
 
Login to your old gerrit node and backup your gerrit data base. In this case the database name is reviewdb. I use mysqldump to backup the database to a file.
 
Login to your old gerrit node and backup your gerrit data base. In this case the database name is reviewdb. I use mysqldump to backup the database to a file.
 
==STEP 2 On new gerrit node==
 
==STEP 2 On new gerrit node==

Revision as of 10:41, 12 July 2018

In this tutorial, we will be migrating our gerrit 2.13 to a new server running gerrit 2.15

Prerequisites

To complete this tutorial, you'll need the following 2 nodes

  • Database node
  • New gerrit node

Environment

Old gerrit

New gerrit

STEP 1 On old gerrit node

Stop gerrit

Backup gerrit database

Login to your old gerrit node and backup your gerrit data base. In this case the database name is reviewdb. I use mysqldump to backup the database to a file.

STEP 2 On new gerrit node

OS Mysql Gerrit version Authetication
Ubuntu 14.0.4 on localhost 2.13