I just installed Grafana 6 last week, and now I’m looking at upgrading.
Not too much invested, but I did want to back up my work so far.
Following the instructions here, I found the process to backup the grafana database:
#### postgres ``` backup: > pg_dump grafana > grafana_backup restore: > psql grafana < grafana_backup ```
On windows server 2008r2, I used the command:
"c:\Program Files\PostgreSQL\12\bin>pg_dump.exe" -h localhost -p 5432 -U postgres grafana > D:\Backup\Grafana\grafana-6-backup.sql
This results in the error “database grafana does not exist”. This is confirmed by pgadmin. There is no grafana database.
I expected that grafana had created a database on the Postgres data source containing the settings, dashboards, and panels that I had configured. Apparently not.
What should I back up before upgrading, if anything?