Skip to content

PennState/grafana-backup-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

grafana-backup-docker

This is a simple docker image containing grafana-backup-tool[1] and a custom entrypoint to backup up the dashboards, datasources, and folders from Grafana to local disk.

The intent is to run this as a CronJob alongside a grafana instance, writing to a PersistentVolumeClaim. A PVC, even if not truly persistent, will provide some level of resilience and the ability to restore should grafana's database be lost or become corrupt.

Future work could include the option to backup straight to S3.

Usage

Environment variables:

  • GRAFANA_BACKUP_PATH - where to save the backups to
  • GRAFANA_BACKUPS_TO_KEEP - how many backups to keep
  • GRAFANA_URL - base url for the grafana instance
  • GRAFANA_TOKEN - API token with admin rights to the grafana instance

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published