I have an OpenHAB2 installation on an RaspberryPi. For backup and versioning reasons i want to save the complete /etc/openhab2 directory in an private git repository on github. Of course I don’t want to have my MAC-adresses and passwords (for example for my fritzbox) which are used in some of my openhab2-Files on gitHub. My idea is, to have one file containing all this sensible informations and which is .gitignored.
How can I import variables (like MACs or passwords) from this file into other .things, .services oder .item files? Or is this a bad idea at all?
This will backup /etc/openhab2/ and /var/lib/openhab2/
This way, the information about installed addons is backuped, but not the addons itself, so when installing openhab2 new, the actual version of the bindings will be installed.
The only things to backup in addition, are the manually installed addons.