Re: Upgrade auf Milestone 5.1.0.M1 oder auch Debian
Verfasst: 30. Dez 2025 13:03
Den Befehl hatte ich von der offiziellen openHAB Anleitung
Genutzt, gepostet und trotzdem ist mir nicht aufgefallen, das ein / fehlt, das sollte die Pfad Angabe sein.
Ich meine weil tmp über FTP das einzig schreibbare Verzeichnis war.
Dabei liegt die Datei im User Home (weird)
Code: Alles auswählen
int5749@Skynet:~$ ls
openhab-backup-25_11_20-07_25_34.zip
Gibt genauso ein erfolgreich aus, aber ist anschliessend genauso leer :/udo1toni hat geschrieben: 30. Dez 2025 12:16 Normalerweise wäre der Weg, das Backup manuell einzuspielen:(gegeben, dass die Datei openhab-backup-25_11_20-07_25_34.zip im aktuellen Verzeichnis liegen).Code: Alles auswählen
sudo openhab-cli restore openhab-backup-25_11_20-07_25_34.zip
Code: Alles auswählen
int5749@Skynet:~$ sudo openhab-cli restore openhab-backup-25_11_20-07_25_34.zip
Started /usr/share/openhab/runtime/bin/restore openhab-backup-25_11_20-07_25_34.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 | 5.1.0.M2 (You are on 5.1.0.M2)
Backup Timestamp | 25_11_20-08_02_36
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!
int5749@Skynet:~$ sudo systemctl start openhab.service