Thank you for your answer. I also want to do that as it seems like the easiest way to backup.
However, I have got this issue â/var/lib/grafana/pluginsâ: permission deniedâ when I enable persistent volume using Helm as instructed on this link Deploy Grafana using Helm Charts | Grafana documentation
It depends on your personal preference - there is no the best solution. I hate K8S volumes, so I use SaaS DB (e.g. AWS RDS Aurora) with automated daily snapshots with 30d retention period + manual snapshot before each major upgrade, I have restore exercise once per year. This is my âthe easiest wayâ.
I deployed it through helm without editing anything. So, I think it is on sqllite.
Since I just started with it, I have developed 2 dashboards.
No, my plan was to use it for visualizing time series data from machines in the factory and alert when some anomalies happen such as values exceeding thresholds.
Hello
Is there a way to pause the Grafana DB (SQLite) during the snapshot?
(indeed, if modifications occur during snapshot, then DB may not be consistent, and after restoring the Volume, the DB may be corrupt , right?)
If I stop grafana pod, then grafana service will be cut during the backup
If I do not want to cut grafana service during backup, is there a way to export sqlite db using CLI?
Correct. So how do you want to have a consistent backup, when you are using file-based SQLite DB?
Serious deployments donât use SQLite, but proper DB (MySQL, PostgreSQL). Users use SQLite because itâs the default DB, so they donât need to lift a finger to configure DB. Then they complain, e.g. Search results for '"Database locked" order:latest' - Grafana Labs Community Forums
You have what you configured. In your case, itâs easy deployment but terrible backups.