====== Datenmigration ====== [[https://www.loxforum.com/forum/projektforen/loxberry/allgemeines-aa/381889-wie-datenmigration-von-lb-2-x-3-0-bei-neuinstallation-m%C3%B6glich|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: * %%Stoppen der Stats4Lox Dienste im Webinterface%% * **Auf dem Quell-Loxberry** zwei %%tar Archive erzeugen als root:%% * cd config/plugins/ tar -zcvf stats4lox-CONFIG stats4lox/ cd .. cd .. cd data/plugins/ tar -zcvf stats4lox-DATA stats4lox/ * **Auf dem Ziel-Loxberry** die beiden %%tar Archive entpacken als root:%% * %%im jeweiligen Pfad!, die vorhandenen stats4lox Ordner löschen mit **rm -r stats4lox%%** * tar -xvzf stats4lox-CONFIG tar -xvzf stats4lox-DATA * %%Starten der Stats4Lox Dienste im Webinterface%% ---- ====== Dashboardnmigration ====== - Install new instance of Grafana - Install used plugins on new server - Stop Grafana service on source and destination server - Copy /var/lib/grafana/grafana.db from old to new server - Check /etc/grafana/grafana.ini - Restart Grafana - Regular connection to the grafana url - 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//