What is the best way to upgrade to OpenHab 3?
I would like to upgrade without reinstalling as I have many custom items and scripts.
I installed OpenHab 2 from armbian-config softy.
Now, from there, I can see both OpenHab2 (checked) and OpenHab3 (unchecked).
Should I uncheck v2 and check v3? Or keep both checked?
The first step would be to create a backup (sudo openhab-cli backup)
Copy it to a location where it is save.
Back then I tested the migration on Windows, openSUSE and RasPiOS. On Windows and RaspiOS the migration of OH3 looked up the OH2 installation and took over what it could. On openSUSE it was a bit different due to the installation mechanisms the OS has; older pachages and newer packages cannot share ressources, so OH2 was uninstalled before OH3 was installed (due to the same user “openhab” that both packages claimed for themselves). In that case I ended up with an empty OH3.
I have no experience with armbian, hence the hint with the backup. When something goes wrong, you will be able to rollback the operation.
Thank you.
Yes, I have an automated backup script every week, so I can rollback to any week in the last year.
Now, I will wait to see if someone already migrated in armbian.
I am afraid that in softy, unchecking OH2 and checking OH3 will completely delete OH2 and reinstall a fresh OH3.
I am also not sure if softy is using apt-get behind…
Worst case scenario, how easy is it to restore an OH2 backup to a fresh OH3 setup?
I have custom items, persistence, rules, services, sitemaps and transforms in OH CONF directory.
Due to what Bruce rightly mentioned I do not think you can apply a OH2 backup into an OH3 installation. If you have textual configuration files you could put the single files into the corresponding folders, but be aware you need to adjust some things. There are threads in the forum that will help with this.
And concerning your regular backup:
I’ve read a few postings in the forum where the OP did not care about backups and ended in a situation he did not expect, without a way back to normalcy. As I did not know your situation I mentioned it. No offense meant.