Switch from raspberry pi 2 to raspberry pi 3

what long list ?
Mind the hints in How to ask a good question / Help Us Help You .

To backup/restore OH config, use openhab-cli.
To backup your RPi best use Amanda (contained in openHABian).
Backing up gateways and controllers (if those contain config) always requires vendor-specific tools.