Discussion:
[influxdb] How to backup and restore database from one influx server to another?
h***@gmail.com
2018-07-09 03:03:04 UTC
Permalink
I use following command to backup single database (influxdb version 1.4.3)

influxd backup -database nbiot -host localhost:8088 /tmp/nbiot

restore database nbiot in another influxdb version 1.4.2

influxd restore -database nbiot -datadir /var/lib/influxdb/data /tmp/influxdb/nbiot/

but after restore, I can just show measurements,
when select * from nb_device, it returns no data.

use nbiot
Using database nbiot
show measurements

name: measurements
name

nb_device
nb_test
tempWithHum
test
user

select * from nb_device

this command returns no records.
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/c24ad1cc-9fe0-49d1-b339-51b5b4e4560a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...