Overview

The replicate command reads data from a source Redis database and writes to a target Redis database.

replication architecture

The replication mechanism is as follows:

  1. Identify source keys to be replicated using scan and/or keyspace notifications depending on the replication mode.

  2. Read data associated with each key using dump or type-specific read commands.

  3. Write each key to the target using restore or type-specific write commands.

Usage

The basic usage is:

riotx replicate [OPTIONS] SOURCE TARGET

where SOURCE and TARGET are Redis URIs.

For the full usage, run:

riotx replicate --help