I have MainGerritServer
which hosts many projects.
Also, I have RogueGerritServer
which also hosts many projects.
I'm looking for a way to move a ProjectA
from RogueGerritServer
to MainGerritServer
while preserving both Git commit history as well as the Gerrit review history.
For example, I want to import Android project's Gerrit history onto my own Gerrit server, so that when I work on a forked version of Android, I can look up the Gerrit history on my local server. What's the best way to do this?
If it were a simple Git installation, I would simply clone ProjectA
into my computer then push to MainGerritServer
. Does a Gerrit based project work the same way?
I'm concerned because Gerrit installation uses a database on the background, and I'm not sure whether I need to also migrate the information in the database. I saw many threads about taking a database dump and moving it to a brand new server. However, I'm trying to move just one project so taking a DB dump doesn't seem appropriate. The closest answer I saw was this which is still not exactly what I'm looking for.
I would appreciate any help, especially if you can show me whether I'm misunderstanding how to approach this.
Thank you