Overview
The replicate
command reads data from a source Redis database and writes to a target Redis database.
The replication mechanism is as follows:
-
Identify source keys to be replicated using scan and/or keyspace notifications depending on the replication mode.
-
Read data associated with each key using dump or type-specific read commands.
-
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