Import v1.x backup to v2.6

you can try with docker.

stop influxdb on old instance:

sudo systemctl stop influxdb

copy everthing from /var/lib/influxdb to your docker machine and map the old and the new influx data folder as volumes to the docker container:

docker run -p 8086:8086 \
  -v "./influxdb-backup:/var/lib/influxdb" \
  -v "./influxdb2-data:/var/lib/influxdb2" \
  -e DOCKER_INFLUXDB_INIT_MODE=upgrade \
  -e DOCKER_INFLUXDB_INIT_USERNAME=my-user \
  -e DOCKER_INFLUXDB_INIT_PASSWORD=my-password \
  -e DOCKER_INFLUXDB_INIT_ORG=my-org \
  -e DOCKER_INFLUXDB_INIT_BUCKET=my-bucket \
  influxdb:2.6

On first start the data will be migrated from 1.x to 2.x

See also: Problem backup 1.8 restore 2.6 - #3 by stif