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

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.


You can use wizzy to copy dashboards from one server to another.

Install wizzy using instructions at https://grafana-wizzy.com/home/getting-started/

Then run the following commands:

Set config for server 1:

wizzy set grafana envs local1 url http://server1:3000
wizzy set grafana envs local1 username admin
wizzy set grafana envs local1 password admin

Set config for server 2:

wizzy set grafana envs local2 url http://server2:3000
wizzy set grafana envs local2 username admin
wizzy set grafana envs local2 password admin

Copy from server 1 to server 2:

wizzy set context grafana local1
wizzy import dashboards
wizzy set context grafana local2
wizzy export dashboards

Your dashboards should be copied now from server 1 to server 2. If there are any issues, please open a GitHub issue on https://github.com/grafana-wizzy/wizzy/issues

Tags:

Grafana