Home Automation System - Migrazione OpenHAB 3 - Backup di OpenHAB e Influxdb (docker) / OpenHAB and InfluxDB (docker) Backup procedure ITA ENG

avatar

floppy_disk_214975.jpgCreative Commons

Fortieth chapter related to my migration from OpenHAB 2.5 to OpenHAB 3

In this video I will show you how I set up my automatic backup procedure for my OpenHAB setup and for the data stored on InfluxDB.

This procedure is written in a simple shell script, starting from a ready-made script that I found on github. I therefore thank the user oliranks; you can find his script on github at this address https://github.com/oliranks/openHAB3-full_backup_and_restore

To keep things simple I chose to backup OpenHAB using the native command "openbab-cli backup", although I could have opted for other solutions, also indicated in the official documentation https://www.openhab.org/docs/installation/openhabian.html#availability-and-backup

For InfluxDB, as it runs through docker containers, I had to follow a slightly different procedure, as the raspberry operating system does not directly see influxdb commands; so I had to interface directly with the container runtime and execute the export commands inside it, using a data volume shared with the raspberry file system, as the backup destination.

The final result is a tar.gz file that contains all the files backed up, organized by folders; this file must be archived and historicized according to your needs.

This video does not presume to be a tutorial, but simply a step by step of what has been done to achieve the goal. I hope that it will help someone.

Enjoy your viewing

***********************************

Quarantesimo capitolo relativo alla mia migrazione da OpenHAB 2.5 ad OpenHAB 3

In questo video vi faccio vedere come ho impostato la mia procedura automatica di backup per il mio setup di OpenHAB e per i dati memorizzati su InfluxDB.

Questa procedura è scritta in un semplice script di shell, partendo da uno script già preconfezionato che ho trovato su github. Ringrazio quindi l'utente oliranks; potete trovare il suo script su github a questo indirizzo https://github.com/oliranks/openHAB3-full_backup_and_restore

Per tenere le cose semplici ho scelto di effettuare il backup di OpenHAB tramite il comando nativo "openbab-cli backup", sebbene avrei potuto optare per altre soluzioni, indicate anche nella documentazione ufficiale https://www.openhab.org/docs/installation/openhabian.html#availability-and-backup

Per quanto riguarda InfluxDB, poichè viene eseguito tramite container docker, ho dovuto seguire una procedura leggermente diversa, in quanto il sistema operativo del raspberry non vede direttamente i comandi di influxdb; quindi ho dovuto interfacciarmi direttamente con il container runtime ed eseguire i comandi di esportazione all'interno di esso, utilizzando un volume condiviso con il file system del raspberry, come destinazione del backup.

Il risultato finale è un file tar.gz che contiene tutti i file sottoposti a backup, organizzati per cartelle; questo file andrà archiviato e storicizzato secondo le proprie esigenze.

Questo video non ha la presunzione di essere un tutorial, ma semplicemente uno step by step di quanto fatto per raggiungere l'obiettivo. La speranza è che possa essere d'aiuto a qualcuno.

Buona visione

Video di mia proprietà

My own video



0
0
0.000
0 comments