Have you looked at this link https://beebom.com/how-clone-raspberry-pi-sd-card-windows-linux-macos/
It has worked for me in the past.
Also, why not make a backup, install a fresh image, then restore from your backup?
Make a Backup
openhab-cli backup --full
Move the backup zip file to PC or other device.
To restore the backup:
Place the backup zip file into the backups folder
sudo systemctl stop openhab2.service
openhab-cli restore /path/to/zipped/backup (var/lib/openhab2/backups)
sudo systemctl start openhab2.service
This will backup
This way, the information about installed addons is backuped, but not the addons itself, so when installing openhab2 new, the actual version of the bindings will be installed.
The only things to backup in addition, are the manually installed addons.