Hi, I want to migrate a grafana installation (v 5.3.4) to a new server.
Is there a guide\docs or best practices to move grafana (without losing data,plugins, configurations, dashboard, datasource, …) from an old server to a newer?
Old Server OS: Ubuntu 16.04
New Server OS: Debian 9.6.0
My workflow for Grafana 9.2.2 (a little more detailed):
In a terminal: docker inspect grafana_old_container_name | grep Source
If you cannot use grep just use docker inspect grafana_old_container_name and search for the line Source
Go to the Source folder and copy all files and folders except public and bin folders.
The grafana.db file has your dashboards, configurations etc., so you can take backups, keep it somewhere else etc. The plugins folder has the installation of your plugins (not the configuration, as it’s included in the grafana.db). I found that public and bin folders are the big ones, but for my configuration everything worked fine without copying them (i guess they will be recreated).
Create a new folder: mkdir grafana_new
enter this folder: cd grafana_new
and paste the folders and files you copied before.
create the new container (from inside the grafana_new folder): docker run -d -p 3000:3000 --name=grafana_new -v $(pwd):/var/lib/grafana grafana/grafana-enterprise