It is used to duplicate a git repository from gerrit to anyway. Configuration file is $GERRIT_INSTALL/etc/replication.config
.
Config file example to clone MyRepo
from gerrit
to backupServer
[remote "backup"]
url = ProjectUrlOnBackupServer/${name} #Example backup.some.org:/pub/git/${name}.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
projects = MyRepo
To reload the plugin, restart Gerrit server or execute following command if install plugin
is installed:
ssh -p 29418 localhost gerrit plugin reload replication
Full documentation : Official Replication Plugin Documentation