美文网首页开源技术
Back and Restore InfluxDB

Back and Restore InfluxDB

作者: 番茄晓蛋 | 来源:发表于2017-04-09 01:32 被阅读11次

    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
    

    相关文章

      网友评论

        本文标题:Back and Restore InfluxDB

        本文链接:https://www.haomeiwen.com/subject/mpnrattx.html