grafana-backup-tool
grafana-backup-tool copied to clipboard
KeyError: 'folderUid' during restore
Hi, when trying to restore grafana from backup, getting KeyError: 'folderUid'.
restoring dashboard: ##/tmp/tmp_sf1nnrm/OUTPUT/dashboards/202203070850/mY9p7dQmz.dashboard Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/grafana_backup/dashboardApi.py", line 260, in get_folder_id folder_uid = dashboard['meta']['folderUid'] KeyError: 'folderUid'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/grafana-backup", line 33, in
#179
Which Grafana version do you use? I guess your changes would break functionality for others.
Hi @israelshenkar thank you for the PR. And as @NilsLeger said, this might break the program. I have a comment in your PR, it needs more tests.
Thank you
Closing, if this is still not addressed in your case please comment @israelshenkar