Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Grafana Backup
BASEURL=http://username:password@127.0.0.1:3000
for dash in $(curl -s -k "${BASEURL}/api/search" | jq -r '.[].title'); do
curl -k "${BASEURL}/api/dashboards/db/${dash}" > "${dash}.json"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment