Inhaltsverzeichnis

Datenmigration

link zum Forum

Wenn man zB seinen Loxberry neu aufsetzen und die Daten, sowie Einstellungen wiederherstellen möchte.

Die Daten befinden sich in den beiden Ordnern

/opt/loxberry/config/plugins/stats4lox
/opt/loxberry/data/plugins/stats4lox​

Folgende Schritte sind durchzuführen:


Dashboardnmigration

  1. Install new instance of Grafana
  2. Install used plugins on new server
  3. Stop Grafana service on source and destination server
  4. Copy /var/lib/grafana/grafana.db from old to new server
  5. Check /etc/grafana/grafana.ini
  6. Restart Grafana
  7. Regular connection to the grafana url
  8. Dashboard, datasource, users, psw, team,… are the same

Anmerkung

Note: The Stats4Lox database is provisioned to Grafana. If there are any issues connecting Grafana to the Influx-DB after the restore described above, which it may show in the Grafana settings/DataSource at *TEST* with error reading InfluxDB. Status Code: 401, it can be helpful to retrigger provisioning.

To execute reprovisioning, run as root /opt/loxberry/bin/plugins/stats4lox/provisioning/set_datasource_influx.pl