I have a Gerrit server (named A) and I want to configure the mirror on a new server (named B). I want to pull from B instead of using the computing power from A, because A serves as the main Gerrit server, and I don't want to put more workload on it when I can mirror it using SSH from B.
I am using an H2 database, and I want to reflect all Gerrit + all of its Git repositories, and not just Git repositories, because I want to save permissions / history from the Gerrit database.
I managed to narrow down two possible ways to do this:
Using 'gerrit replicate' http://gerrit.googlecode.com/svn/documentation/2.1.6/cmd-replicate.html Not sure if this means "[--url <PATTERN>]". Where should I put this command? Is it on server A or B?
Use 'rsync', which is fine, but then I cannot sync the review_site / etc / gerrit.config file because it contains the IP address of server A and does not want to have it on server B.
source share