Restore Openhab Backup from MacOS to Raspberry Pi Openhabian

Hi there,

I am migrating my istall from macOS to Openhabian on a Pi

I have run the backup script and have the zip file on my mac
I have a pi set up running openhabian, and I can access openhabian-config

How can I get the backup zip file into the correct directory on the openhabian SD card to restore it?

Tried searching through the forum but couldnt see a clear answer.

Thanks in advance :slight_smile:

You can have a look to the backup, restore scripts to check how they work.
On my system the environment variable

OPENHAB_BACKUPS=/var/lib/openhab2/backups

is set.
Backups are stored in that directory and taken from there.

According to the usage of restore:

usr/share/openhab2/runtime/bin/restore -h
                                          
##########################################
       openHAB 2.x.x restore script       
##########################################
                                          
Usage: restore filename

  e.g. ./restore myBackup.zip  << Restores config from myBackup.zip

Use this script to restore an openHAB configuration that was previously made with
the openHAB 'backup' script.

you even can directly call/start the restore script and use the zip file as an argument.

I kept getting an error that its not a valid restore file. Ended up just copying across everything manually lol

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.