Hey im trying to run this restore script i rsynced from a openhab Pi to a VM thats supposed to be a backup

Using ‘/etc/openhab’ as conf folder…
Using ‘/var/lib/openhab’ as userdata folder…
Making Temporary Directory
Extracting zip file to temporary folder.
[restore]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: restore may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of restore or
restore.zip, and cannot find restore.ZIP, period.
Unable to unzip restore, Aborting…
root@usrv-name:/usr/share/openhab/runtime/bin#

Your backlup file is corrupted. You need to create another one.

You can try to open the file with a tool like 7zip or the like to see if there is enough there for it to extract some of the files but what ever you are using now isn’t a valid zip file.

I can now run the restore script
root@usrv-name:/var/lib/openhab/backups# openhab-cli restore backup.zip

Started /usr/share/openhab/runtime/bin/restore backup.zip

##########################################
openHAB restore script
##########################################

Using ‘/etc/openhab’ as conf folder…
Using ‘/var/lib/openhab’ as userdata folder…
Making Temporary Directory
Extracting zip file to temporary folder.
Backup was not created by openHAB scripts, please resort to a manual restore…

But the changes dont apply

nvm this one , i used the openhab-cli backup to backup the directory which was then automatically zipped
but it still dosent apply the changes

Started /usr/share/openhab/runtime/bin/restore backup.zip

##########################################
openHAB restore script
##########################################

Using ‘/etc/openhab’ as conf folder…
Using ‘/var/lib/openhab’ as userdata folder…
Making Temporary Directory
Extracting zip file to temporary folder.

Backup Information:

Backup Version | 4.0.4 (You are on 4.0.4)
Backup Timestamp | 23_11_19-14_35_53
Config belongs to user | openhab
from group | openhab

Your current configuration will become owned by openhab:openhab.

Any existing files with the same name will be replaced.
Any file without a replacement will be deleted.

Okay to Continue? [y/N]: y
Moving system files in userdata to temporary folder
Deleting old userdata folder…
Restoring system files in userdata…
Deleting old conf folder…
Restoring openHAB with backup configuration…
Deleting temporary files…
Backup successfully restored!

The log from the restore script seems to indicate that the restore worked. What are the dates on the files ( e.g. /var/lib/openhab/jsondb)? Was OH running during the restore? It shouldn’t be running when restoring.

openhab wasnt running i shut it down ,ran the restore script, and then turned it back on
this is what in /var/lib/openhab/jsondb is . Is there a logs file or something like that ?

" ============================================================================
" Netrw Directory Listing (netrw v171)
" /var/lib/openhab/jsondb
" Sorted by name
" Sort sequence: [/]$,<core%(.\d+)=>,.h$,.c$,.cpp$,~=*$,*,.o$,.obj$,.info$,.swp$,.bak$,~$
" Quick Help: :help -:go up dir D:delete R:rename s:sort-by x:special
" ==============================================================================
…/ ./
backup/
uicomponents_ui_page.json
users.json

And what does the userdata folder contain in teh backup.zip file?

There are all sorts of log files. Which are you looking for? The restore log you’ve posted above. OH logs are in /var/log/openhab