Migrating to version 4

I am currently running version 3.1.1 of Grafana and everything works very well.
I would like to upgrade to the latest version with minimum downtime. But I am worried that I will miss something up along the way.

What do I have to keep in mind when upgrading directly to latest version? and what files/configurations do I have to backup in case I needed to revert back ?
Also, is it enough to just run $ sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-4.1.2-1486989747.x86_64.rpm in order to update the existing package ?

Thanks

1 Like

You should be fine just installing the new version.

  1. Backup database (always good to do before upgrade), database is in /var/lib/grafana/grafana.db if you use sqlite3

  2. Install new version

    sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-4.1.2-1486989747.x86_64.rpm

You should not need to backup config files (but could be good), there might be questions during install that the package config files are modified and you have local edits, always keep your local edits (the default action).

1 Like

@torkel one more thing:
I am upgrading using a custom built rpm package now, which is going to be a local rpm file.
How do I safely do that?

Thanks