Coder Social home page Coder Social logo

Comments (5)

vergoh avatar vergoh commented on July 23, 2024 1

Upgrade directly from both versions 1.12 and 1.14 to version 1.17 is supported without losing data. Based on a quick check, neither of those linked instructions do anything destructive either. However, it depends on how the distribution packaging has been done regarding what gets removed when the package is uninstalled. It doesn't hurt to take a backup of the database files. Note that the configuration file contains new options so check those out and tune if needed. See the UPGRADE file that comes with the source package for a list of new settings and man vnstat.conf for a description of what those settings do.

from vnstat.

hub2git avatar hub2git commented on July 23, 2024

Thanks, Vergoh. I'll close this issue. I haven't upgraded yet. If I have issues with data loss, I may reopen this issue. :)

from vnstat.

hub2git avatar hub2git commented on July 23, 2024

@vergoh said

It doesn't hurt to take a backup of the database files.

Should I simply copy the relevant files and folders to my backup location? If so, which files and folders should I copy?

Or do you suggest using the --exportdb option?

http://humdi.net/vnstat/CHANGES says

1.17 / 16-Feb-2017

  • Fix: --importdb was creating invalid databases since version 1.15

So since my versions are 1.14 and 1.12, I believe this "invalid-database" issue won't affect me.

from vnstat.

hub2git avatar hub2git commented on July 23, 2024

Another question: What happens if I upgrade directly to vnstat 2.0? Any loss of database/logs/info?

from vnstat.

vergoh avatar vergoh commented on July 23, 2024

During the first daemon startup of version 2.x, all found version 1.x databases get automatically imported to the version 2.x database. Because the new database is a single file for all interfaces, the old version 1.x database files are kept in place, just in case the user wants to downgrade for some reason. Nothing is lost during the import process.

from vnstat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.