NAME

gerrit replicate - Manually trigger replication, to recover a node

SYNOPSIS

ssh -p <port> <host> gerrit replicate [--url <PATTERN>] {--all | <PROJECT> …}

DESCRIPTION

Schedules replication of the specified projects to all configured replication destinations, or only those whose URLs match the pattern given on the command line.

Normally Gerrit automatically schedules replication whenever it makes a change to a managed Git repository. However, there are other reasons why an administrator may wish to trigger replication:

ACCESS

Caller must be a member of the privileged Administrators group.

SCRIPTING

This command is intended to be used in scripts.

OPTIONS

--all

Schedule replicating for all projects.

--url=<PATTERN>

Replicate only to replication destinations whose URL contains the substring <PATTERN>. This can be useful to replicate only to a previously down node, which has been brought back online.

EXAMPLES

Replicate every project, to every configured remote:

$ ssh -p 29418 review.example.com gerrit replicate --all

Replicate only to srv2 now that it is back online:

$ ssh -p 29418 review.example.com gerrit replicate --url=srv2 --all

Replicate only the tools/gerrit project, after deleting a ref locally by hand:

$ git --git-dir=/home/git/tools/gerrit.git update-ref -d refs/changes/00/100/1
$ ssh -p 29418 review.example.com gerrit replicate tools/gerrit

SEE ALSO


Part of Gerrit Code Review