OH4 backups

I’m running Openhabian with openHAB 4.3.2.

I have created a backup script with rsync, but wanted to check i’m backing up enough…

/etc/openhab is configured, i can see this includes the config files, but will this also take care of config that is created within the UI? im slowly moving my config from files to the UI and want to ensure i have a backup…

My backup is to a separate Pi 4B across the network. seems to work ok, we’ll see tomorrow if the Cron job has worked as expected.

No, You’ll need to backup both directories
$OPENHAB_CONF aka /etc/openhab/ and
$OPENHAB_USERDATA aka /var/lib/openhab/
Best practice is to also backup $OPENHAB_ADDONS aka /usr/local/openhab/addons/

You can get those directories via shell:

openhabian@openhab:~$ openhab-cli info
1 Like

Brilliant, thanks so much.

my $OPENHAB_ADDONS is /usr/share/openhab/addons/

Yepp, that’s correct. I’ve written from my (bad) memory :wink:
But those paths are different depending on the installation method anyway :slight_smile: so it’s always a good idea to check via openhab-cli…

1 Like