Hi, depending on your architecture, there are a number of supported ways:
https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-upgrade-previous-version
Be sure to get a backup of the config before upgrading.
https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-import-export-config