Export, Import grafana configuration with datasources and passwords for them (except users in groups). Does not preserve IDs (UID are still exported/imported). creates new IDs in new grafana Can export from Postgresql and import to Mysql/Mariadb and vice versa.
for export:
python.exe .\main.py --api_key <> --export_srv <> --dir '
' --db_server : --db_user --db_password <> --db_name <> --db_type <M or P, M for mysql/mariadb, P for postgresql>for import:
python.exe .\main.py --api_key <> --import_srv <> --dir --set_default_datasource '<default datasource name, which is null in dashboards>' --db_server : --db_user <> --db_password <> --db_name <> --db_type <M or P, M for mysql/mariadb, P for postgresql>