In order to preserve my Raspberry SD card from excessive writes I would like to redirect the Openhab log files and persistence databases to an external USB Key or driver.
Can I and if possible how, change the OpenHab configuration to redirect logs and persistance files to a specific directory.
rrd has a fixed folder location in the user data folder. You could probably move the whole user data (I think this is probably a setting somewhere - it definitely is in OH2), but you canāt change just the rrd folder with the current codebase.
I donāt know - Iām reasonably sure that others would also allow the database to be set, but Iām not personally knowledgeable in all the others. My guess though is that databases like influx and mongo would also allow this, but Iām not certain.
Maybe others can jump in here and comment - or maybe the wiki might say
You can āmoveā the rrd4j folder using symbolic links. Put the folder on your external drive and ln -s that folder to ā/var/lib/openhab/persistenceā.