Skip to main content

Migrate to InfluxDB

If you're running InfluxDB v1 or v2 on your own infrastructure, you can migrate your data the instance of InfluxDB that you have running in the ExyData platform.

This guide can help you migrate from InfluxDB v1 to InfluxDB v1 or from InfluxDB v2 to InfluxDB v2. If you want to upgrade and move your information from InfluxDB v1 to InfluxDB v2, contact us so we can help you with the process.

Migrate from InfluxDB v1 to InfluxDB v1

Step 1: Dual write

The first step is to configure your InfluxDB instance to write data to both your local instance and the ExyData platform. This is called dual writing.

Once you have dual writing configured, you can backfill your data into the ExyData platform from your local instance.

Step 2: Backup your data locally

To backup your data, you can use the influxd backup command. For more information, see influxd backup.

For example, to backup your data to a local directory, run the following command:

influxd backup -portable -database <database-name> <backup-path>

Step 3: Restore your data to the ExyData platform

To restore your data, you can use the influxd restore command. For more information, see influxd restore.

For example, to restore your data from a local directory, run the following command:

influxd restore -portable -h https://5c9f5b5c.customers.exy.io:8086 -db <database-name> <backup-path>

Migrate from InfluxDB v2 to InfluxDB v2

Step 1: Dual write

The first step is to configure your InfluxDB instance to write data to both your local instance and the ExyData platform. This is called dual writing.

Once you have dual writing configured, you can backfill your data into the ExyData platform from your local instance.

Step 2: Backup your data locally

To backup your data, you can use the influx backup command. For more information, see influx backup.

For example, to backup your data to a local directory, run the following command:

influx backup -t <auth-token> -o <organization-name> <backup-path>

Step 3: Restore your data to the ExyData platform

Cannot restore to existing buckets

The influx restore command cannot restore data to existing buckets. Use the --new-bucket flag to create a new bucket to restore data to. To restore data and retain bucket names, delete existing buckets and then begin the restore process.

To restore your data, you can use the influx restore command. For more information, see influx restore.

For example, to restore your data from a local directory, run the following command:

influx restore --host https://5c9f5b5c.customers.exy.io:8086 -t <auth-token> -o <organization-name> --full <backup-path>

Step 4: Remove dual write

Once you have restored your data, you can remove dual writing from your InfluxDB instance.

Next steps

Now that you've migrated your data, you can connect your data to Grafana and start building dashboards or create alerts.