No. You should backup in the beginning to have a fallback in case you need it but clearly it is not part of the upgrade process itself. Never has been in generic terms.
I believe you still didn’t understand the major point in this as you keep asking that:
you make a mistake to mix OS and application.
You need to upgrade the application (openHAB, that is) on your box FIRST. AFTER that you can create a config backup that’ll work with the new application version (OH 3.2).
THEN you can either dist-upgrade or reinstall/replace the OS of your box with latest (bullseye or whatever). As a fresh openHABian install always installs the latest OH version, too, in both cases you will have the latest application version OH3.2 after that step.
FINALLY as that is the very same application version you took the backup on, you can import it.
That’s how upgrades work, that’s what is recommended. That’s what’ll work when you want to upgrade the OS in the future.
It doesn’t work and never will to write instruction that apply to all the use cases.
OH runs on top of so many HW and OSs that this is not feasible.
So that what you and other users hope to get, instructions best tailored to your specific setup, will not happen. This is being asked for over and over but it is a very bad effort vs usefulness ratio and actually asked way too much from the few volunteers that we currently are.
We would be happy if you contributed an installation document.
Just remember it needs to apply to all possible use cases, i.e. all HW and OS you can run openHAB on.
Or it at least properly needs to state which setups it applies to and which ones it does not.
You also need to distinguish software (openHAB) from openHABian and the mechanisms of the underlying OS such as
Also mind the various cases like on Raspi hardware or on Debian or other Linuxes on x86 or even on Windows.
Not really. The issue is not about files in /etc/openhab but about those in
openhab-cli has always been backing up/restored those files, too. OH3 added jsondb but essentially it didn’t change anything substantial.