Go Reference

golang.org/x/build/cmd/gitmirror

The gitmirror binary watches the specified Gerrit repositories for new commits and syncs them to mirror repositories.

Deployment

See the documentation on deployment.