InfluxDB数据备份与恢复

时间:2021-10-16 13:40:17
数据备份与恢复 Example:(192.167.8.13 InfluxDB:DeviceHistory备份到192.167.8.52,然后恢复到该服务器上)
 
steps:
 
login 192.167.8.52
 
1、influxd backup -host 192.167.8.13:8088 ./influx_db_backup_20161014
 
2、influxd backup -database DeviceHistory -host 192.167.8.13:8088 ./influx_db_backup_20161014
 
3、sudo influxd restore -metadir /var/lib/influxdb/meta/ ./influx_db_backup_20161014
 
4、sudo influxd restore -database DeviceHistory -datadir /var/lib/influxdb/data ./influx_db_backup_20161014
 
5、sudo chown -R influxdb:influxdb /var/lib/influxdb
 
6、sudo service influxdb stop
 
7、sudo service influxdb start
 
8、finish!!
 
 
InfluxDB 中国用户组 QQ:225180876