Back and Restore InfluxDB

when I backup Influxdb on my Ubuntu 16.04 LTS on Lab, it uses v0.10.0,

sudo service influxdb stop
sudo tar cvf influxdb.backup.2017.04.07.tar  /var/lib/influxdb/data /var/lib/influxdb/meta  /etc/influxdb/influxdb.conf
sudo service influxdb start

I try to restore the backup file into my personal System76 laptop which has InfluxDB v1.2.2. It failed with error in /etc/influxdb/influxdb.conf

sudo tar xvf influxdb.backup.2017.04.07.tar  -C /

So, I delete the /etc/influxdb/influxdb.conf and then try to install InfluxDB by the command,

sudo apt-get install influxdb 

Try to start the InfluxDB service by $influxd
It says "/etc/influxdb/influxdb.conf" not found.

So, I have to download the official version config.sample.toml
and copy it to /etc/influxdb/ folder, then rename it to influxdb.conf

Finally, it works.

sudo service influxdb start
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,995评论 0 0
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 11,170评论 0 23
  • 早春三月,雨后的空气格外清凉但又不像寒冬那样侵入骨髓。 我走在田间小路上,左手边的麦田绿得能融化一切,右手边是一片...
    纸窗竹屋阅读 480评论 1 6
  • 十一月过去了,虽然今天是十二月三号,但我仍然如此认为。因为包含十一月及十二月的这一周,过的很糟糕,感觉不是很好。...
    商渔阅读 215评论 0 0
  • chown 用来变更文件或目录的拥有者或所属群组 补充说明 chown命令 改变某个文件或目录的所有者和所属的组,...
    子不语_whh阅读 576评论 0 0

友情链接更多精彩内容