ePrivacy and GPDR Cookie Consent by TermsFeed Generator Home Automation System - OpenHAB 3 Migration - 40. OpenHAB and InfluxDB (docker) backup procedure | OpenHAB - SmartHome | DomoticsDuino - Computer engineer, Smart Home / OpenHAB, Flight Sim and others...
OpenHAB - SmartHome (232 posts)


Home Automation System - OpenHAB 3 Migration - 40. OpenHAB and InfluxDB (docker) backup procedure [Versione in italiano]

by Marco Lamanna

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

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

[Open on YOUTUBE]