This page documents an earlier version of InfluxDB. InfluxDB v2.7 is the latest stable version. View this page in the v2.7 documentation.
influxd upgrade command to upgrade an instance of InfluxDB 1.x to InfluxDB 2.0.
This command copies all data in databases and
retention policies (used in 1.x)
over to buckets (used in 2.0).
Be sure to back up all data before upgrading with
This command performs the following actions:
- Creates the InfluxDB 2.x configuration file using 1.x configuration file options.
Unsupported 1.x options are reported to standard output.
If the configuration file is not available, the 1.x database folder can be passed via th
- Copies and upgrades 1.x database files.
The target 2.x database directory is specified by the
If changed, the bolt path can be specified by the
influxd upgrade [flags] influxd upgrade [command]
|Path for boltdb database (default ||string|
|Primary bucket name||string|
|Custom InfluxDB 1.x config file path (default ||string|
|Path for exported 1.x continuous queries (default ||string|
|Path for persistent engine files (default ||string|
|Skip the confirmation prompt|
|Help for |
|Path for 2.x |
|Supported log levels are ||string|
|Custom log file path (default ||string|
|Primary organization name||string|
|Overwrite existing files at the output paths instead of aborting the upgrade process|
|Password for username||string|
|Duration bucket will retain data (default ||string|
|Token for username. If not specified, a token is auto-generated.||string|
|Path to source 1.x ||string|
|Destination path for upgraded 2.x configuration file (default ||string|
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:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.