influx replication create
Replication remotes and replication streams can only be configured for InfluxDB OSS.
influx replication create command creates a new InfluxDB replication stream.
influx replication create [command options] [arguments...]
|Flag||Description||Input type||Maps to ?|
|Replication stream name||string|
|Replication stream description||string|
|Local organization ID||string|
|Local organization name||string|
|Remote connection ID to replicate data to||string|
|Local bucket ID to replicate data from||string|
|Remote bucket name to replicate data to (mutually exclusive with ||string|
|Remote bucket ID to replicate data to (mutually exclusive with ||string|
|Max queue size in bytes (default: ||integer|
|Drop data when a non-retryable error is encountered|
|Do not drop data when a non-retryable error is encountered|
|Specify a maximum age (in seconds) for data before it is dropped||integer|
|InfluxDB HTTP address (default ||string|
|Skip TLS certificate verification|
|Path to ||string|
|CLI configuration to use for command||string|
|Inspect communication with InfluxDB servers||string|
|Output data as JSON (default |
|Hide table headers (default |
|InfluxDB API token||string|
The examples below assume your InfluxDB host, organization, and token are
provided by either the active
influx CLI configuration or by environment variables (
If you do not have a CLI configuration set up or the environment variables set, include these required credentials for each command with the following flags:
--host: InfluxDB host
--org-id: InfluxDB organization name or ID
-t, --token: InfluxDB API token
Create a replication stream
- Create a remote connection, if you haven’t already.
influx remote listto get the ID for the remote you want to replicate data to.
$ influx remote list ID Name Org ID 0ooxX0xxXo0x myremote [...]
- Create the replication:
influx replication create \ --name myreplication --local-bucket example-local-bucket --remote-bucket example-remote-bucket --remote-id 0ooxX0xxXo0x
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.