openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
821 stars 252 forks source link

Import / partial restore #1582

Closed mstormi closed 3 years ago

mstormi commented 3 years ago

Depends: openhab/openhab-distro#1310

Extend menu option 51 to also allow for partial restores. openhab/openhab-distro#1310 will add [--textconfig] [--uiconfig] options to the [openhab-cli] restore script.

For text config updates (restores) only, we do not need to restart OH. https://github.com/openhab/openhab-linuxpkg/blob/main/resources/usr/bin/openhab-cli does that though, so we better replace calling that by a direct call to the restore script $OPENHAB_RUNTIME/bin/restore

Also (like all others) make this a function that can be called unattended through CLI so we can patch some OH install from remote. See mirror_SD for an example how to use.

mstormi commented 3 years ago

fixed-by: #1585