Skip to content

Instantly share code, notes, and snippets.

@fbrnc
Created May 18, 2016 15:29
Show Gist options
  • Save fbrnc/7bb07722ddd09490c05e200fff5a14f9 to your computer and use it in GitHub Desktop.
Save fbrnc/7bb07722ddd09490c05e200fff5a14f9 to your computer and use it in GitHub Desktop.
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