Difference between revisions of "Migration of Gerrit Server Old to New"
Jump to navigation
Jump to search
Line 43: | Line 43: | ||
|2.15 | |2.15 | ||
|LDAP | |LDAP | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | ===MYSQL node=== | ||
+ | {| class="wikitable" | ||
+ | |+Server Information | ||
+ | |- | ||
+ | |OS | ||
+ | |MYSQL | ||
+ | |MYSQL version | ||
+ | |- | ||
+ | |Ubuntu 16.04 | ||
+ | |server version | ||
|- | |- | ||
|} | |} |
Revision as of 12:46, 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
OS | MYSQL | MYSQL version | Gerrit version | Authentication |
Ubuntu 14.04 | On Localhost | 2.13 | LDAP |
New gerrit
OS | MYSQL | MYSQL version | Gerrit version | Authentication |
Debian 9 (Stretch) | On remonte host | 2.15 | LDAP |
MYSQL node
OS | MYSQL | MYSQL version |
Ubuntu 16.04 | server version |
STEP 1 On old gerrit node
Stop gerrit
Login to your gerrit server with the gerrit user or the user running gerrit. Navigate to /gerrit/bin and run
sudo ./gerrit.sh stop
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.
mysqldum -u gerrit -p database reviewdb > reviewdb_backup.sql
If prompt, enter you mysql password. This will backup your database reviewdb to a file called reviewdb_backup.sql
STEP 2 On new gerrit node
Installation
Make sure that you have Ubuntu 16.04 installed on you new gerrit node.