title |
description |
menu |
weight |
aliases |
related |
influx export |
The 'influx export' command exports existing resources as an InfluxDB template. |
|
101 |
/v2.0/reference/cli/influx/pkg/export/ |
|
/v2.0/influxdb-templates/create/ |
|
The influx export
command exports existing resources as an InfluxDB template.
For detailed examples of exporting InfluxDB templates, see
Create an InfluxDB template.
Usage
influx export [flags]
influx export [command]
Available subcommands
Subcommand |
Description |
all |
Export all resources in an organization as a template |
stack |
Export all resources associated with a stack as a template |
Flags
Flag |
|
Description |
Input Type |
|
--buckets |
Comma-separated list of bucket IDs |
string |
|
--checks |
Comma-separated list of check IDs |
string |
|
--dashboards |
Comma-separated list of dashboard IDs |
string |
|
--endpoints |
Comma-separated list of notification endpoint IDs |
string |
-f |
--file |
Template output file. Defaults to stdout. Use .yml or .json file extensions. |
string |
-h |
--help |
Help for the export command |
|
|
--labels |
Comma-separated list of label IDs |
string |
|
--resource-type |
Resource type associated with all IDs via stdin |
string |
|
--rules |
Comma-separated list of notification rule IDs |
string |
|
--tasks |
Comma-separated list of task IDs |
string |
|
--telegraf-configs |
Comma-separated list of Telegraf configuration IDs |
string |
|
--variables |
Comma-separated list of variable IDs |
string |
{{% cli/influx-global-flags %}}
Examples
# Export buckets by ID
influx export --buckets=$ID1,$ID2,$ID3
# Export buckets, labels, and dashboards by ID
influx export \
--buckets=$BID1,$BID2,$BID3 \
--labels=$LID1,$LID2,$LID3 \
--dashboards=$DID1,$DID2,$DID3