Backup a Grafana instance <group> <count>

The last <count> backups per group <group> are kept.

The following crontab schedule would perform daily, weekly, monthly and yearly backups:

@daily daily    7
@weekly weekly   4
@monthly monthly 12
@yearly yearly   2

The underlying functionality handling the actual dumping part is implemented in cki.deployment_tools.grafana.

Environment variables

Field Type Required Description
GRAFANA_URL string yes Grafana instance URL
GRAFANA_TOKEN string yes Grafana secret token
BUCKET_CONFIG_NAME string yes Name of an environment variable with bucket configuration