---
title: Migrate data to InfluxDB
description: Migrate data to InfluxDB from other InfluxDB instances including by InfluxDB OSS and InfluxDB Cloud.
url: https://docs.influxdata.com/influxdb/v2/write-data/migrate-data/
estimated_tokens: 423
product: InfluxDB OSS v2
version: v2
---

# Migrate data to InfluxDB

This page documents an earlier version of InfluxDB OSS. [InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a copy of the database file doesn’t expose usable tokens. Existing tokens are hashed on first startup and the original strings can’t be recovered afterward — **capture any plaintext tokens you still need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

Migrate data to InfluxDB from other InfluxDB instances including by InfluxDB OSS and InfluxDB Cloud.

### [Migrate data from InfluxDB OSS to other InfluxDB instances](/influxdb/v2/write-data/migrate-data/migrate-oss/)

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.

### [Migrate data from InfluxDB Cloud to InfluxDB OSS](/influxdb/v2/write-data/migrate-data/migrate-cloud-to-oss/)

To migrate data from InfluxDB Cloud to InfluxDB OSS, query the data from InfluxDB Cloud in time-based batches and write the data to InfluxDB OSS.
