Documentation

Migrate data from InfluxDB OSS to InfluxDB Cloud

To migrate data from an InfluxDB OSS bucket to another InfluxDB OSS or InfluxDB Cloud bucket, export your data as line protocol and write it to your other InfluxDB bucket.

InfluxDB Cloud write limits

If migrating data from InfluxDB OSS to InfluxDB Cloud, you are subject to your InfluxDB Cloud organization’s rate limits and adjustable quotas. Consider exporting your data in time-based batches to limit the file size of exported line protocol to match your InfluxDB Cloud organization’s limits.

  1. Find the InfluxDB OSS bucket ID that contains data you want to migrate.

  2. Use the influxd inspect export-lp command to export data in your bucket as line protocol. Provide the following:

    • bucket ID: (Required) ID of the bucket to migrate.
    • engine path: (Required) Path to the TSM storage files on disk. The default engine path depends on your operating system, If using a custom engine-path provide your custom path.
    • output path: (Required) File path to output line protocol to.
    • start time: Earliest time to export.
    • end time: Latest time to export.
    • measurement: Export a specific measurement. By default, the command exports all measurements.
    • compression: (Recommended) Use Gzip compression to compress the output line protocol file.
    influxd inspect export-lp \
      --bucket-id 12ab34cd56ef \
      --engine-path ~/.influxdbv2/engine \
      --output-path path/to/export.lp
      --start 2022-01-01T00:00:00Z \
      --end 2022-01-31T23:59:59Z \
      --compress
    
  3. Write the exported line protocol to your InfluxDB OSS or InfluxDB Cloud instance.

    Do any of the following:


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB v3 enhancements and InfluxDB Clustered is now generally available

New capabilities, including faster query performance and management tooling advance the InfluxDB v3 product line. InfluxDB Clustered is now generally available.

InfluxDB v3 performance and features

The InfluxDB v3 product line has seen significant enhancements in query performance and has made new management tooling available. These enhancements include an operational dashboard to monitor the health of your InfluxDB cluster, single sign-on (SSO) support in InfluxDB Cloud Dedicated, and new management APIs for tokens and databases.

Learn about the new v3 enhancements


InfluxDB Clustered general availability

InfluxDB Clustered is now generally available and gives you the power of InfluxDB v3 in your self-managed stack.

Talk to us about InfluxDB Clustered

InfluxDB Cloud powered by TSM