How to completely copy Grafana dashboard(s) from one server to other server

Ammad picture Ammad · Feb 4, 2017 · Viewed 8.1k times · Source

I have 20 plus dashboards in Grafana hosting at Server1. We acquired another server and we did installed same version of Grafana on Server2 machine.

I want to know is this possible that i can completely clone Server-1 Grafana instance along with all dashboards to Server2?

As of now Grafana only supports one by one dashboard import and export.

One other possibility i am thinking is to copy all Grafana files/directories from Server-1 to server-2 using standard SCP command. But i am not sure which files do i need to copy.

Answer

AussieDan picture AussieDan · Feb 4, 2017

If you are using the built-in sqlite3 database, then you can indeed just copy your data directory and conf/custom.ini to the new server and that will include all your dashboards, plugins, etc. In that setup the database is contained in data/grafana.db under your grafana installation.