content/shared/influxdb-v2/write-data/migrate-data/migrate-oss.md
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.
[!Important]
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.
Find the InfluxDB OSS bucket ID that contains data you want to migrate.
Use the influxd inspect export-lp command to export data in your bucket as
line protocol.
Provide the following:
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
Write the exported line protocol to your InfluxDB OSS or InfluxDB Cloud instance.
Do any of the following: