InfluxDB Docs

influx export all

The influx export all command exports all resources in an organization as an InfluxDB template. For detailed examples of exporting InfluxDB templates, see Create an InfluxDB template.

Usage

influx export all [flags]

Flags

FlagDescriptionInput TypeMaps to ?
-f--fileTemplate output file. Defaults to stdout. Use .yml or .json file extensions.string
--filterSpecify resources to export by labelName or resourceKind (format: --filter=labelName=example)list of strings
-h--helpHelp for the export all command
--hostHTTP address of InfluxDB (default http://localhost:9999)stringINFLUX_HOST
-o--orgOrganization name that owns the resourcesstringINFLUX_ORG
--org-idOrganization ID that owns the resourcesstringINFLUX_ORG_ID
--skip-verifySkip TLS certificate verification
-t--tokenAuthentication tokenstringINFLUX_TOKEN

Examples

```sh

Export all resources in an organization as a template

influx export all --org $INFLUX_ORG

Export all bucket resources as a template

influx export all --org $INFLUX_ORG --filter=resourceKind=Bucket

Export all resources associated with label Foo

influx export all --org $INFLUX_ORG --filter=labelName=Foo

Export all bucket resources and filter by label Foo

influx export all --org $INFLUX_ORG
--filter=resourceKind=Bucket
--filter=labelName=Foo

Export all bucket or dashboard resources and filter by label Foo.

#

Note: “like” filters are unioned and filter types are intersections.

For example, the following will export a resource if it is a dashboard or

bucket and has an associated label of Foo.

influx export all --org $INFLUX_ORG
--filter=resourceKind=Bucket
--filter=resourceKind=Dashboard
--filter=labelName=Foo ``


New! Cloud or OSS?