I ran into a similar problem: I wanted to copy data from a V1.8 production system to a V2.1 test system.
Both self-hosted, so full access. And not a migration or an update, that comes later, if at all.
The long recipe given by @Anaisdg about a year ago doesn’t work for me.
The cited link of step 2 describes howto extract data from a V2.0 system.
It simply doesn’t apply to a V1.8 system.
I ended up with extracting the data with influx_inspect like
influx_inspect export -database dca \
-datadir /var/lib/influxdb/data \
-waldir /var/lib/influxdb/wal \
-compress \
-out dca.line.gz
That file is copied from the production to the test system and split into reasonable chunks with
time zcat dca.line.gz | split -l 50000 -d -a 4 - dca.line_
These files are finally curl'ed into the target system via a shell script (as described earlier).
For a ~500MB database I got a ~600 MB compressed file, and ~1500 chunk files with a total of ~4 GB.
