I think I'll rsync grafana.db in a cron job.
@fgiunchedi would you do anything more sophisticated than that?
I think I'll rsync grafana.db in a cron job.
@fgiunchedi would you do anything more sophisticated than that?
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T215182 Install private Grafana/Promtheus instance in fundraising | |||
Resolved | • cwdent | T217353 Backup strategy for Grafana |
It's almost certainly unnecessary with as little write traffic as our grafanas get, but what I've been doing for my own pre-version-upgrade backups is the following:
sqlite3 /var/lib/grafana/grafana.db ".backup $HOME/grafana.db.backup$(date +%F)"
This acquires a read lock on the database and guarantees you get something consistent.
Pretty sure everything is done here, I will close once the archive sync runs successfully.