InfluxDB 2 hardware migration

Hello everyone,

I can’t find a precise way to change my server (hardware). Both sides will be with Docker and I can guarantee to have exactly the same version (2.7.4-alpine). However, it won’t be exactly the same distribution.

If I do one:
influx backup /path/to/backup/dir/ -t <root-token>
then a:
influx restore --full /path/to/backup/dir/
I’m ok?
…with config, access, tokens, users, buckets, everything?
The restore with -full doc seems clear, but the backup side is a bit less so.

Or should I copy /var/lib/influxdb2 from one server to another?

Thanks,

Hello @JBrdy,
I mean you could do both to be safe. But the backup should work. :)))