Grafana backup and restore problem

I have installed grafana in my ubuntu server. i am using zabbix data for plotting graphs. Now i simply want to backup grafana.db and grafana.ini and dashboards but it can’t let me do this. it give me below error.
Error: /var/lib/grafana/grafana.db: open for read: permission denied
Error: File transfer failed

permissions are as below in my ubuntu server.

drwxr-xr-x 4 grafana grafana 4096 Jan 23 09:15 grafana
-rw-r----- 1 grafana grafana 1212416 Jan 23 09:15 grafana.db
drwxr-x— 4 grafana grafana 4096 Jan 2 14:27 plugins
drwx------ 2 grafana grafana 4096 Jan 20 11:53 png

how can i do backup and restore grafana settings.

Hi,

There are several ways you can perform backups, there are some that only copy the db and ini, and you could also use some python, check out :

Hope it helps.

Good Luck

i still get the same error. i can’t copy db and ini files

Hi,

Did you try the operation with root user ?

Just to make sure if permission issues.

Hope it helps.

Good Luck