I want to backup grafana configuration for following use cases
setup/upgrade on new hardware/os/ami and potentially in different environment (dev, test, prod)
in case of server crash - restore from backup
I looked at backing up grafana.db and ini, but i was able to retrieve dashboard jason files if i need to restore a single dashboard for whatever reason.
So I figure out way to backup dashboard and datasource using curl and bearer key - that worked well, but when curl post, it doesn’t respect dashboard original folder, it adds a new dashboard to general folder. Also, if i use UI to import already exported dashboard from above, I have to provide name, folder etc, but imported dashboard never works, blank screen.
What is the correct way to import/export dashboard or is there a way to get individual dashboard.json from garafana.db and restore it, if needed?
Thanks in advance.