influx backup command backs up data stored in InfluxDB to a specified directory.
influx backup [flags] path
|Flag||Description||Input type||Maps to ?|
|CLI configuration to use for command||string|
|ID of the bucket to back up from (mutually exclusive with ||string|
|Name of the bucket to back up from (mutually exclusive with ||string|
|Path to ||string|
|Help for the |
|Hide table headers (default |
|HTTP address of InfluxDB (default: ||string|
|Output data as JSON (default |
|Organization name (mutually exclusive with ||string|
|Organization ID (mutually exclusive with ||string|
|Skip TLS certificate verification||string|
The examples below assume your InfluxDB host, organization, and token are
provided by the active
influx CLI configuration.
If you do not have a CLI configuration set up, use the appropriate flags to provide these required credentials.
- Back up all data to a directory
- Back up all data to the current working directory
- Back up a specific bucket to a directory
Back up all data to a directory
influx backup /path/to/backup/dir/
Back up all data to the current working directory
influx backup ./
Back up a specific bucket to a directory
influx backup --bucket example-bucket /path/to/backup/dir/
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, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.