Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Kodeblok
root@homeassist:/usr/share/openhab2/runtime/bin# ./backup

#########################################
       openHAB 2.x.x backup script
#########################################

Using '/etc/openhab2' as conf folder...
Using '/var/lib/openhab2' as userdata folder...
Using '/usr/share/openhab2/runtime' as runtime folder...
Using '/var/lib/openhab2/backups' as backup folder...
Writing to '/var/lib/openhab2/backups/openhab2-backup-18_12_22-11_44_32.zip'...
Making Temporary Directory if it is not already there
Using /tmp/openhab2/backup as TempDir
Copying configuration to temporary folder...
Removing unnecessary files...
Backup Directory is inside userdata, not including in this backup!
Zipping folder...
Removing temporary files...
Success! Backup made in /var/lib/openhab2/backups/openhab2-backup-18_12_22-11_44_32.zip

root@homeassist:/usr/share/openhab2/runtime/bin#
Advarsel

A test - moving from one server to a new showed me that the backup is not "complete", as 2 things went wrong:

  • The camera binding that I manually added in the "addon" folder was not in the backup
  • Things binded to the camera binding was broken
  • A Thing that was disabled was not disabled on the backup


Security

Notice that OpenHab has no security, and You need to install it in front of openHab. Do read Securing Communication and access to openHAB

...