Skip to content

Instantly share code, notes, and snippets.

@msoedov
Forked from fbrnc/grafana_backup.sh
Created August 9, 2016 19:52
Show Gist options
  • Save msoedov/cbebd378a4444958c13c7f515a76eb3d to your computer and use it in GitHub Desktop.
Save msoedov/cbebd378a4444958c13c7f515a76eb3d to your computer and use it in GitHub Desktop.
Grafana Backup
BASEURL=http://username:[email protected]: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